pub fn validate_payload_timestamp(
chain_spec: impl EthereumHardforks,
version: EngineApiMessageVersion,
timestamp: u64,
kind: MessageValidationKind,
) -> Result<(), EngineObjectValidationError>Expand description
Validates the timestamp depending on the version called:
- If V2, this ensures that the payload timestamp is pre-Cancun.
- If V3, this ensures that the payload timestamp is within the Cancun timestamp.
- If V4, this ensures that the payload timestamp is within the Prague timestamp.
- If V5, this ensures that the payload timestamp is within the Osaka timestamp.
Additionally, it ensures that engine_getPayloadV4 is not used for an Osaka payload.
Otherwise, this will return EngineObjectValidationError::UnsupportedFork.