Function reth_node_builder::validate_payload_timestamp
source ยท pub fn validate_payload_timestamp(
chain_spec: &ChainSpec,
version: EngineApiMessageVersion,
timestamp: u64
) -> Result<(), EngineObjectValidationError>
Expand description
Validates the timestamp depending on the version called:
- If V2, this ensure that the payload timestamp is pre-Cancun.
- If V3, this ensures that the payload timestamp is within the Cancun timestamp.
Otherwise, this will return EngineObjectValidationError::UnsupportedFork.