Expand description
State trie overlay construction and caching.
Structs§
- Overlay
- Contains the trie and hashed-state data required to initialize an overlay state provider.
- Overlay
Builder - Builder for calculating trie and hashed-state overlays.
- Overlay
Manager - Manages flattened state trie overlays for in-memory blocks.
- Overlay
State Provider - State provider with in-memory overlay from trie updates and hashed post state.
- Overlay
State Provider Factory - Factory for creating overlay state providers with optional reverts and overlays.
- State
Trie Overlay Error - Error returned when a state trie overlay cannot be built from the manager’s current block set.
Enums§
- Anchor
ForParent - Describes whether an overlay must revert the database before using its anchor.
- Overlay
Source - 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.