Skip to main content

ensure_well_formed_fields

Function ensure_well_formed_fields 

Source
pub fn ensure_well_formed_fields<T: Block>(
    block: &SealedBlock<T>,
    is_amsterdam_active: bool,
) -> Result<(), PayloadError>
Expand description

Checks that Amsterdam header fields are present if Amsterdam is active and absent otherwise.