Versions in this module Expand all Collapse all v0 v0.13.8 Nov 15, 2024 Changes in this version + const EthMsgSoftCapSize + const MaxCodeHashesPerRequest + 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 BlockSignatureRequest struct + BlockID ids.ID + func (s BlockSignatureRequest) Handle(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (s BlockSignatureRequest) String() string + 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 MessageSignatureRequest struct + MessageID ids.ID + func (s MessageSignatureRequest) Handle(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (s MessageSignatureRequest) String() string + 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) HandleBlockSignatureRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (NoopRequestHandler) HandleCodeRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + func (NoopRequestHandler) HandleMessageSignatureRequest(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) + HandleBlockSignatureRequest func(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + HandleCodeRequest func(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + HandleMessageSignatureRequest 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() error + OnResponse func(response []byte) error + type SignatureResponse struct + Signature [bls.SignatureLen]byte + 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) (block.StateSyncMode, error)) (SyncSummary, error) + func (s SyncSummary) Accept(context.Context) (block.StateSyncMode, error) + func (s SyncSummary) Bytes() []byte + func (s SyncSummary) Height() uint64 + func (s SyncSummary) ID() ids.ID + func (s SyncSummary) String() string