Versions in this module Expand all Collapse all v0 v0.6.3 Nov 22, 2024 Changes in this version + type BlockProvider interface + GetBlock func(common.Hash, uint64) *types.Block + type BlockRequestHandler struct + func NewBlockRequestHandler(blockProvider BlockProvider, codec codec.Manager, ...) *BlockRequestHandler + func (b *BlockRequestHandler) OnBlockRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + type CodeRequestHandler struct + func NewCodeRequestHandler(codeReader ethdb.KeyValueReader, codec codec.Manager, ...) *CodeRequestHandler + func (n *CodeRequestHandler) OnCodeRequest(_ context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + type LeafsRequestHandler struct + func NewLeafsRequestHandler(trieDB *trie.Database, snapshotProvider SnapshotProvider, codec codec.Manager, ...) *LeafsRequestHandler + func (lrh *LeafsRequestHandler) OnLeafsRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, ...) ([]byte, error) + type SnapshotProvider interface + Snapshots func() *snapshot.Tree + type SyncDataProvider interface + type TestBlockProvider struct + GetBlockFn func(common.Hash, uint64) *types.Block + func (t *TestBlockProvider) GetBlock(hash common.Hash, number uint64) *types.Block + type TestSnapshotProvider struct + Snapshot *snapshot.Tree + func (t *TestSnapshotProvider) Snapshots() *snapshot.Tree