Function reth_node_builder::validate_version_specific_fields

source ยท
pub fn validate_version_specific_fields<Type>(
    chain_spec: &ChainSpec,
    version: EngineApiMessageVersion,
    payload_or_attrs: PayloadOrAttributes<'_, Type>
) -> Result<(), EngineObjectValidationError>
where Type: PayloadAttributes,
Expand description

Validates the presence or exclusion of fork-specific fields based on the ethereum execution payload, or payload attributes, and the message version.

The object being validated is provided by the PayloadOrAttributes argument, which can be either an execution payload, or payload attributes.

The version is provided by the EngineApiMessageVersion argument.