Versions in this module Expand all Collapse all v0 v0.6.3 Nov 22, 2024 Changes in this version + const EthMsgSoftCapSize + const MaxCodeHashesPerRequest + const Version + var Codec codec.Manager + var CrossChainCodec codec.Manager + func BuildGossipMessage(codec codec.Manager, msg GossipMessage) ([]byte, error) + func RequestToBytes(codec codec.Manager, request Request) ([]byte, error) + 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 CrossChainRequest interface + Handle func(ctx context.Context, requestingChainID ids.ID, requestID uint32, ...) ([]byte, error) + type CrossChainRequestHandler interface + HandleEthCallRequest func(ctx context.Context, requestingchainID ids.ID, requestID uint32, ...) ([]byte, error) + func NewCrossChainHandler(b ethapi.Backend, codec codec.Manager) CrossChainRequestHandler + type EthCallRequest struct + RequestArgs []byte + func (e EthCallRequest) Handle(ctx context.Context, requestingChainID ids.ID, requestID uint32, ...) ([]byte, error) + func (e EthCallRequest) String() string + type EthCallResponse struct + ExecutionResult []byte + type EthTxsGossip struct + Txs []byte + func (msg EthTxsGossip) Handle(handler GossipHandler, nodeID ids.NodeID) error + func (msg EthTxsGossip) String() string + type GossipHandler interface + 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 + 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 NoopCrossChainRequestHandler struct + func (NoopCrossChainRequestHandler) HandleEthCallRequest(ctx context.Context, requestingchainID ids.ID, requestID uint32, ...) ([]byte, error) + type NoopMempoolGossipHandler struct + func (NoopMempoolGossipHandler) HandleEthTxs(nodeID ids.NodeID, msg EthTxsGossip) error + type NoopRequestHandler struct + 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 + 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 + 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