pub fn validate_withdrawals_presence<T>(
chain_spec: &T,
version: EngineApiMessageVersion,
message_validation_kind: MessageValidationKind,
timestamp: u64,
has_withdrawals: bool,
) -> Result<(), EngineObjectValidationError>where
T: EthereumHardforks,Expand description
Validates the presence of withdrawals for the engine method version.
V1 forbids withdrawals. V2 supports both Paris and Shanghai payloads, so withdrawals must be present exactly when Shanghai is active. V3 and later require withdrawals regardless of the timestamp, allowing complete requests outside the method’s fork to reach the timeframe check.