Crate reth_node_builder::engine
source · Expand description
Traits, validation methods, and helper types used to abstract over engine types.
Modules§
- Contains error types used in the traits defined in this crate. Defines a payload validation error type
- Contains types used in implementations of the PayloadAttributes trait.
- Contains traits to abstract over payload attributes types and default implementations of the PayloadAttributes trait for ethereum mainnet and optimism types.
Enums§
- The version of Engine API message.
- Thrown when the payload or attributes are known to be invalid before processing.
- A type that represents whether or not we are validating a payload or payload attributes.
- Either an [ExecutionPayload] or a types that implements the PayloadAttributes 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.
- The types that are used by the engine API.
- 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.
- This can be implemented by types that describe a currently running payload job.
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.