pub fn ensure_well_formed_transactions_field_with_sidecar<T: Transaction + Typed2718>(
block_body: &BlockBody<T>,
cancun_sidecar_fields: Option<&CancunPayloadFields>,
is_cancun_active: bool,
) -> Result<(), PayloadError>
Expand description
Checks transactions field and sidecar w.r.t new Cancun fields and new transaction type EIP-4844.
Checks that:
- doesn’t contain EIP-4844 transactions unless Cancun is active
- checks blob versioned hashes in block and sidecar match