Documentation
¶
Overview ¶
Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Copyright (C) 2019-2025, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- func NewExtender(backend *state.AtomicBackend, trie *state.AtomicTrie, requestSize uint16) *extender
- func NewLeafHandler(atomicTrieDB *triedb.Database, trieKeyLength int, networkCodec codec.Manager) *leafHandler
- func NewSummaryParser() *summaryParser
- func NewSummaryProvider(atomicTrie *state.AtomicTrie) *summaryProvider
- type Summary
- type Syncer
Constants ¶
View Source
const TrieNode message.NodeType = 2
TrieNode represents a leaf node that belongs to the atomic trie.
Variables ¶
This section is empty.
Functions ¶
func NewExtender ¶
func NewExtender(backend *state.AtomicBackend, trie *state.AtomicTrie, requestSize uint16) *extender
Initialize initializes the sync extender with the backend and trie.
func NewLeafHandler ¶
func NewLeafHandler(atomicTrieDB *triedb.Database, trieKeyLength int, networkCodec codec.Manager) *leafHandler
Initialize initializes the leafHandler with the provided atomicTrieDB, trieKeyLength, and networkCodec
func NewSummaryParser ¶
func NewSummaryParser() *summaryParser
func NewSummaryProvider ¶
func NewSummaryProvider(atomicTrie *state.AtomicTrie) *summaryProvider
Types ¶
type Summary ¶
type Summary struct {
*message.BlockSyncSummary `serialize:"true"`
AtomicRoot common.Hash `serialize:"true"`
// contains filtered or unexported fields
}
Summary provides the information necessary to sync a node starting at the given block.
func NewSummary ¶
Click to show internal directories.
Click to hide internal directories.