reth_node_api

Function validate_version_specific_fields

pub fn validate_version_specific_fields<Type, T>(
    chain_spec: &T,
    version: EngineApiMessageVersion,
    payload_or_attrs: PayloadOrAttributes<'_, Type>,
) -> Result<(), EngineObjectValidationError>
where Type: PayloadAttributes, T: EthereumHardforks,
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.