Skip to main content

Module state_root_task

Module state_root_task 

Source
Expand description

State root task interface types shared between the engine tree and the payload builder. State-root task interface types shared between the engine tree and the payload builder.

The “state-root task” is the background multiproof and sparse-trie pipeline that computes state roots incrementally while a block executes. This module holds its boundary types: the input messages, the StateRootSink and stream views that feed it, and the handles that await its result. The per-block strategy abstraction that decides whether and how the task runs lives in reth-engine-tree under tree::state_root_strategy.

Structs§

PayloadStateRootHandle
Opaque state-root task handle passed to payload builders.
StateAccessHint
Hashed account and storage keys that a state-root task may want to prefetch.
StateRootComputeOutcome
Outcome of the state root computation, including the state root itself with the trie updates.
StateRootHandle
Handle to a background sparse trie state root computation.
StateRootHintStream
Hint-only view of a state-root stream.
StateRootTaskCancelGuard
Guard that cancels a state-root task when dropped.
StateRootUpdateHook
EVM hook that forwards state updates into a StateRootSink.
StateRootUpdateStream
Authoritative update capability of a state-root stream.

Enums§

StateRootMessage
Messages used internally by the multi proof task.

Traits§

StateRootSink
Semantic update stream consumed by state-root tasks.

Functions§

evm_state_to_hashed_post_state
Converts [EvmState] to HashedPostState by keccak256-hashing addresses and storage slots.