Versions in this module Expand all Collapse all v0 v0.8.17 Sep 1, 2022 v0.8.16 Aug 31, 2022 Changes in this version + const EthMsgSoftCapSize + const Version + var Codec codec.Manager + func BuildGossipMessage(codec codec.Manager, msg GossipMessage) ([]byte, error) + func RequestToBytes(codec codec.Manager, request Request) ([]byte, error) + type AtomicTxGossip struct + Tx []byte + func (msg AtomicTxGossip) Handle(handler GossipHandler, nodeID ids.NodeID) error + func (msg AtomicTxGossip) String() string + type BlockRequest struct + Hash common.Hash + Height uint64 + Parents uint16 + func (b BlockRequest) Handle(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (b BlockRequest) String() string + type BlockResponse struct + Blocks [][]byte + type CodeRequest struct + Hashes []common.Hash + func NewCodeRequest(hashes []common.Hash) CodeRequest + func (c CodeRequest) Handle(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (c CodeRequest) String() string + type CodeResponse struct + Data [][]byte + type EthTxsGossip struct + Txs []byte + func (msg EthTxsGossip) Handle(handler GossipHandler, nodeID ids.NodeID) error + func (msg EthTxsGossip) String() string + type GossipHandler interface + HandleAtomicTx func(nodeID ids.NodeID, msg AtomicTxGossip) error + HandleEthTxs func(nodeID ids.NodeID, msg EthTxsGossip) error + type GossipMessage interface + Handle func(handler GossipHandler, nodeID ids.NodeID) error + func ParseGossipMessage(codec codec.Manager, bytes []byte) (GossipMessage, error) + type LeafsRequest struct + Account common.Hash + End []byte + Limit uint16 + NodeType NodeType + Root common.Hash + Start []byte + func (l LeafsRequest) Handle(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (l LeafsRequest) String() string + type LeafsResponse struct + Keys [][]byte + More bool + ProofVals [][]byte + Vals [][]byte + type NodeType uint8 + const AtomicTrieNode + const StateTrieNode + func (nt NodeType) String() string + type NoopMempoolGossipHandler struct + func (NoopMempoolGossipHandler) HandleAtomicTx(nodeID ids.NodeID, msg AtomicTxGossip) error + func (NoopMempoolGossipHandler) HandleEthTxs(nodeID ids.NodeID, msg EthTxsGossip) error + type NoopRequestHandler struct + func (NoopRequestHandler) HandleAtomicTrieLeafsRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (NoopRequestHandler) HandleBlockRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, request BlockRequest) ([]byte, error) + func (NoopRequestHandler) HandleCodeRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (NoopRequestHandler) HandleStateTrieLeafsRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + type Request interface + Handle func(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func BytesToRequest(codec codec.Manager, requestBytes []byte) (Request, error) + type RequestHandler interface + HandleAtomicTrieLeafsRequest func(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + HandleBlockRequest func(ctx context.Context, nodeID ids.NodeID, requestID uint32, request BlockRequest) ([]byte, error) + HandleCodeRequest func(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + HandleStateTrieLeafsRequest func(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + type ResponseHandler interface + OnFailure func(nodeID ids.NodeID, requestID uint32) error + OnResponse func(nodeID ids.NodeID, requestID uint32, response []byte) error + type SyncSummary struct + AtomicRoot common.Hash + BlockHash common.Hash + BlockNumber uint64 + BlockRoot common.Hash + func NewSyncSummary(blockHash common.Hash, blockNumber uint64, blockRoot common.Hash, ...) (SyncSummary, error) + func NewSyncSummaryFromBytes(summaryBytes []byte, acceptImpl func(SyncSummary) (bool, error)) (SyncSummary, error) + func (s SyncSummary) Accept() (bool, error) + func (s SyncSummary) Bytes() []byte + func (s SyncSummary) Height() uint64 + func (s SyncSummary) ID() ids.ID + func (s SyncSummary) String() string