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