Expand description
Reth state related types and functionality.
Modules§
- test_
utils test-utils - Common test helpers
Structs§
- Block
State - State after applying the given block, this block is part of the canonical chain that partially stored in memory and can be traced back to a canonical block on disk.
- Canon
State Notification Stream - A Stream of
CanonStateNotification. - Canonical
InMemory State - This type is responsible for providing the blocks, receipts, and state for all canonical blocks not on disk yet and keeps track of the block range that is in memory.
- Canonical
InMemory State Writer - Creates a
CanonicalInMemoryStateand changes it: the blocks it tracks, its chain info, and the notifications it sends. - Chain
Info Headers - The headers a
ChainInfoTrackerstarts from: the canonical head and, if known, the safe and finalized blocks. - Chain
Info Tracker - Tracks the chain info: canonical head, safe block, finalized block.
- EthPrimitives
- Helper struct that specifies the ethereum
NodePrimitivestypes. - Executed
Block - Represents an executed block stored in-memory.
- Execution
Timing Stats - Statistics collected during block execution for cross-client performance analysis.
- Fork
Choice Notifications - Wrapper around a broadcast receiver that receives fork choice notifications.
- InMemory
State - Container type for in memory state data of the executed blocks that are not on disk yet.
- InMemory
State Block Counts - The numbers of blocks an
InMemoryStatetracks. - InMemory
State Snapshot - The executed in-memory blocks an
InMemoryStatetracked at one moment, taken withInMemoryState::snapshot_during. - InMemory
State Writer - Write access to the blocks of an
InMemoryState. - Persisted
Block Notifications - Wrapper around a watch receiver that receives persisted block notifications.
- Preserved
Sparse Trie - A preserved sparse trie that can be reused across payload validations.
- Snapshotted
- A value and the in-memory blocks that were tracked during the whole time it was produced,
returned by
InMemoryState::snapshot_during. - Sparse
Trie With Storage Roots - A finalized sparse trie and its revealed storage roots for the next block’s proof workers.
- Watch
Value Stream - A stream that yields values from a
watch::Receiver<Option<T>>, filtering outNonevalues.
Enums§
- Canon
State Notification - A notification that is sent when a new block is imported, or an old block is reverted.
- NewCanonical
Chain - Non-empty chain of blocks.
- Preserved
Sparse Trie Error - Error returned when consuming a preserved sparse trie.
Constants§
- SNAPSHOT_
DURING_ ATTEMPTS - How many times
InMemoryState::snapshot_duringruns its closure at most.
Traits§
- Canon
State Subscriptions - A type that allows to register chain related event subscriptions.
- Fork
Choice Subscriptions - A trait that allows to register to fork choice related events and get notified when a new fork choice is available.
- Persisted
Block Subscriptions - A trait that allows subscribing to persisted block events.
Type Aliases§
- Canon
State Notification Sender - Type alias for a sender that sends
CanonStateNotification - Canon
State Notifications - Type alias for a receiver that receives
CanonStateNotification - Fork
Choice Stream - Alias for
WatchValueStreamfor fork choice watch channels.