ensure_well_formed_fields

Function ensure_well_formed_fields 

Source
pub fn ensure_well_formed_fields<T: Typed2718, H>(
    block_body: &BlockBody<T, H>,
    prague_fields: Option<&PraguePayloadFields>,
    is_prague_active: bool,
) -> Result<(), PayloadError>
Expand description

Checks block and sidecar well-formedness w.r.t new Prague fields and new transaction type EIP-7702.

Checks that:

  • Prague fields are not present unless Prague is active
  • does not contain EIP-7702 transactions if Prague is not active