Crate reth_chain_state

Source
Expand description

Reth state related types and functionality.

Modules§

test_utilstest-utils
Common test helpers

Structs§

BlockState
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.
CanonStateNotificationStream
A Stream of CanonStateNotification.
CanonicalInMemoryState
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.
ChainInfoTracker
Tracks the chain info: canonical head, safe block, finalized block.
EthPrimitives
Helper struct that specifies the ethereum NodePrimitives types.
ExecutedBlock
Represents an executed block stored in-memory.
ExecutedBlockWithTrieUpdates
An ExecutedBlock with its [TrieUpdates].
ForkChoiceNotifications
Wrapper around a broadcast receiver that receives fork choice notifications.
ForkChoiceStream
A stream for fork choice watch channels (pending, safe or finalized watchers)
MemoryOverlayStateProviderRef
A state provider that stores references to in-memory blocks along with their state as well as a reference of the historical state provider for fallback lookups.

Enums§

CanonStateNotification
A notification that is sent when a new block is imported, or an old block is reverted.
NewCanonicalChain
Non-empty chain of blocks.

Traits§

CanonStateSubscriptions
A type that allows to register chain related event subscriptions.
ForkChoiceSubscriptions
A trait that allows to register to fork choice related events and get notified when a new fork choice is available.

Type Aliases§

CanonStateNotificationSender
Type alias for a sender that sends CanonStateNotification
CanonStateNotifications
Type alias for a receiver that receives CanonStateNotification
MemoryOverlayStateProvider
A state provider that stores references to in-memory blocks along with their state as well as the historical state provider for fallback lookups.