Expand description
Standalone crate for Reth configuration traits and builder types.
Re-exports§
pub use reth_engine_primitives as engine;
pub use reth_payload_primitives as payload;
pub use node::*;
Modules§
- Traits for configuring a node.
Structs§
- A
NodeTypes
type builder. - A
NodeTypesWithEngine
type builder. - Traits and helper types used to abstract over EVM methods and types. Represents additional attributes required to configure the next block. This is used to configure the next block’s environment
ConfigureEvmEnv::next_cfg_and_block_env
and contains fields that can’t be derived from the parent header alone (attributes that are determined by the CL.) - An adapter type combining
NodeTypes
and db intoNodeTypesWithDB
. - Represents a receiver for various payload events.
Enums§
- The version of Engine API message.
- Thrown when the payload or attributes are known to be invalid before processing.
- Payload builder events.
- A type that represents whether or not we are validating a payload or payload attributes.
- Possible error variants during payload building.
- Either an [
ExecutionPayload
] or a types that implements thePayloadAttributes
trait. - Thrown when validating an execution payload OR payload attributes fails due to:
Traits§
- Represents a built payload type that contains a built [
SealedBlock
] and can be converted into engine API execution payloads. - Traits and helper types used to abstract over EVM methods and types. Trait for configuring the EVM for executing full blocks.
- Traits and helper types used to abstract over EVM methods and types. This represents the set of methods used to configure the EVM’s environment before block execution.
- This type defines the versioned types of the engine API.
- Type that validates the payloads sent to the engine.
- Network specific
eth
API types. - Helper trait to unify all provider traits for simplicity.
- An invalid block hook.
- Configures all the primitive types of the node.
- The type that configures the essential types of an Ethereum-like node.
- A helper trait that is downstream of the
NodeTypesWithEngine
trait and adds database to the node. - The type that configures an Ethereum-like node with an engine for consensus.
- The execution payload attribute type the CL node emits via the engine API. This trait should be implemented by types that could be used to spawn a payload job.
- A builder that can return the current payload attribute.
- A type that can request, subscribe to and resolve payloads.
- This can be implemented by types that describe a currently running payload job.
- The types that are used by the engine API.
Functions§
- Validate the presence of the
parentBeaconBlockRoot
field according to the given timestamp. This method is meant to be used with either apayloadAttributes
field or a full payload, with theengine_forkchoiceUpdated
andengine_newPayload
methods respectively. - Validates the timestamp depending on the version called:
- Validates the presence or exclusion of fork-specific fields based on the ethereum execution payload, or payload attributes, and the message version.