Expand description
Traits, validation methods, and helper types used to abstract over engine types.
Modules§
- config
- Engine tree configuration.
Structs§
- Consensus
Engine Handle - A cloneable sender type that can be used to send engine API messages.
- Forkchoice
State Tracker - The struct that keeps track of the received forkchoice state and their status.
- Invalid
Block Hooks - Multiple
InvalidBlockHooks that are executed in order. - Noop
Invalid Block Hook - A no-op
InvalidBlockHookthat does nothing. - OnFork
Choice Updated - Represents the outcome of forkchoice update.
- Tree
Config - The configuration of the engine tree.
Enums§
- Beacon
Engine Message - A message for the beacon engine from other components of the node (engine RPC API invoked by the consensus layer).
- Beacon
Fork Choice Update Error - Represents error cases for an applied forkchoice update.
- Beacon
OnNew Payload Error - Represents all error cases when handling a new payload.
- Consensus
Engine Event - Events emitted by the consensus engine.
- Forkchoice
State Hash - A helper type to check represent hashes of a
ForkchoiceState - Forkchoice
Status - A simplified representation of
PayloadStatusEnumspecifically for FCU.
Constants§
- DEFAULT_
MEMORY_ BLOCK_ BUFFER_ TARGET - How close to the canonical head we persist blocks.
- DEFAULT_
MULTIPROOF_ TASK_ CHUNK_ SIZE - The size of proof targets chunk to spawn in one multiproof calculation.
- DEFAULT_
MULTIPROOF_ TASK_ CHUNK_ SIZE_ V2 - The size of proof targets chunk to spawn in one multiproof calculation when V2 proofs are enabled. This is 4x the default chunk size to take advantage of more efficient V2 proof computation.
- DEFAULT_
PERSISTENCE_ THRESHOLD - Triggers persistence when the number of canonical blocks in memory exceeds this threshold.
- DEFAULT_
PREWARM_ MAX_ CONCURRENCY - Default maximum concurrency for prewarm task.
- DEFAULT_
RESERVED_ CPU_ CORES - Default number of reserved CPU cores for non-reth processes.
- MIN_
WORKER_ COUNT - Minimum number of workers we allow configuring explicitly.
Traits§
- Configure
Engine Evm ConfigureEvmextension providing methods for executing payloads.- Engine
ApiValidator - Type that validates the payloads processed by the engine API.
- Engine
Types - This type defines the versioned types of the engine API based on the ethereum engine API.
- Executable
TxIterator - Iterator over executable transactions.
- Executable
TxTuple - A helper trait representing a pair of a “raw” transactions iterator and a closure that can be used to convert them to an executable transaction. This tuple is used in the engine to parallelize heavy work like decoding or recovery.
- Execution
Payload - Represents the core data structure of an execution payload.
- Invalid
Block Hook - An invalid block hook.
- Payload
Validator - Type that validates an
ExecutionPayload.
Functions§
- has_
enough_ parallelism - Determines if the host has enough parallelism to run the payload processor.
Type Aliases§
- Beacon
Consensus Engine Event Deprecated - Type alias for backwards compat
- Beacon
Consensus Engine Handle Deprecated - Type alias for backwards compat