Skip to main content

validate_slot_number_presence

Function validate_slot_number_presence 

Source
pub fn validate_slot_number_presence<T: EthereumHardforks>(
    chain_spec: &T,
    version: EngineApiMessageVersion,
    message_validation_kind: MessageValidationKind,
    timestamp: u64,
    has_slot_number: bool,
) -> Result<(), EngineObjectValidationError>
Expand description

Validates the presence of the slot number field according to the payload timestamp. After Amsterdam, slot number field must be Some. Before Amsterdam, slot number field must be None;