Skip to main content

Crate reth_trie_sparse

Crate reth_trie_sparse 

Source
Expand description

The implementation of sparse MPT.

Modules§

errors
Re-export sparse trie error types.
provider
Traits and default implementations related to retrieval of blinded trie nodes.

Structs§

DeferredDrops
Holds data that should be dropped after any locks are released.
ParallelSparseTrie
A revealed sparse trie with subtries that can be updated in parallel.
ParallelismThresholds
Configuration for controlling when parallelism is enabled in ParallelSparseTrie operations.
RlpNodePathStackItem
RLP node path stack item.
RlpNodeStackItem
RLP node stack item.
SparseStateTrie
Sparse state trie representing lazy-loaded Ethereum state trie.
SparseSubtrie
This is a subtrie of the ParallelSparseTrie that contains a map from path to sparse trie nodes.
SparseSubtrieBuffers
Collection of reusable buffers for calculating subtrie hashes.
SparseTrieUpdates
Tracks modifications to the sparse trie structure.

Enums§

LeafLookup
Success value for a leaf lookup operation
LeafLookupError
Error type for a leaf lookup operation
LeafUpdate
Describes an update to a leaf in the sparse trie.
LeafUpdateStep
Represents the outcome of processing a node during leaf insertion
RevealableSparseTrie
A sparse trie that is either in a “blind” state (no nodes are revealed, root node hash is unknown) or in a “revealed” state (root node has been revealed and the trie can be updated).
SparseNode
Enum representing trie nodes in sparse trie.
SparseNodeType
Enum representing sparse trie node type.
SparseSubtrieType
Sparse Subtrie Type.

Constants§

NUM_LOWER_SUBTRIES
Number of lower subtries which are managed by the ParallelSparseTrie.
UPPER_TRIE_MAX_DEPTH
The maximum length of a path, in nibbles, which belongs to the upper subtrie of a ParallelSparseTrie. All longer paths belong to a lower subtrie.

Traits§

SparseTrie
Trait defining common operations for revealed sparse trie implementations.