Skip to main content

Crate reth_storage_overlay

Crate reth_storage_overlay 

Source
Expand description

State trie overlay construction and caching.

Structs§

Overlay
Contains the trie and hashed-state data required to initialize an overlay state provider.
OverlayBuilder
Builder for calculating trie and hashed-state overlays.
OverlayManager
Manages flattened state trie overlays for in-memory blocks.
OverlayStateProvider
State provider with in-memory overlay from trie updates and hashed post state.
OverlayStateProviderFactory
Factory for creating overlay state providers with optional reverts and overlays.
StateTrieOverlayError
Error returned when a state trie overlay cannot be built from the manager’s current block set.

Enums§

AnchorForParent
Describes whether an overlay must revert the database before using its anchor.
OverlaySource
Source of data to apply on top of the durable database state.

Functions§

anchor_for_parent
Returns the anchor block to use for the target parent and a chain of in-memory blocks.
anchor_for_parent_with_frontiers
Returns the anchor block to use for the target parent and a chain of in-memory blocks using known durable frontiers.
database_state_frontiers
Returns the highest blocks whose state/trie data and non-state/trie data are durably available in the database.