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.

Structs§

ArenaParallelSparseTrie
An arena-based sparse trie whose subtries can be mutated in parallel.
ArenaParallelismThresholds
An arena-based parallel sparse trie.
DeferredDrops
Holds data that should be dropped after any locks are released.
RlpNodeStackItem
RLP node stack item.
SparseStateTrie
Sparse state trie representing lazy-loaded Ethereum state trie.
TrieNodeEpoch
Modification epoch assigned to cached sparse trie nodes.

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.
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.
SparseNodeState
Tracks the current state of a node in the trie, specifically regarding whether it’s been updated or not.
SparseNodeType
Enum representing sparse trie node type.

Traits§

SparseTrie
Trait defining common operations for revealed sparse trie implementations.

Type Aliases§

SparseTrieUpdates
Chronological updates to persisted branches, with None indicating removal.