-
Notifications
You must be signed in to change notification settings - Fork 8
/
fullnode.go
33 lines (27 loc) · 965 Bytes
/
fullnode.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package protocols
import (
"github.com/chia-network/go-chia-libs/pkg/types"
)
// RequestPeers is an empty struct
type RequestPeers struct{}
// RespondPeers is the format for the request_peers response
type RespondPeers struct {
PeerList []types.TimestampedPeerInfo `streamable:""`
}
// NewPeak is the format for the new_peak response
type NewPeak struct {
HeaderHash types.Bytes32 `streamable:""`
Height uint32 `streamable:""`
Weight types.Uint128 `streamable:""`
ForkPointWithPreviousPeak uint32 `streamable:""`
UnfinishedRewardBlockHash types.Bytes32 `streamable:""`
}
// RequestBlock is the format for the request_block request
type RequestBlock struct {
Height uint32 `streamable:""`
IncludeTransactionBlock bool `streamable:""`
}
// RespondBlock is the format for the respond_block response
type RespondBlock struct {
Block types.FullBlock `streamable:""`
}