Versions in this module Expand all Collapse all v0 v0.0.2 Oct 1, 2024 v0.0.1 Jun 25, 2024 Changes in this version + func NewSyncHandler(provider SyncDataProvider, diskDB ethdb.KeyValueReader, ...) message.RequestHandler + 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