pub fn ensure_well_formed_fields<T: Block>( block: &SealedBlock<T>, is_amsterdam_active: bool, ) -> Result<(), PayloadError>
Checks that Amsterdam header fields are present if Amsterdam is active and absent otherwise.