reth_consensus_common::validation

Function validate_cancun_gas

Source
pub fn validate_cancun_gas<H: BlockHeader, B: BlockBody>(
    block: &SealedBlock<H, B>,
) -> Result<(), ConsensusError>
Expand description

Validate that blob gas is present in the block if Cancun is active.

See EIP-4844: Shard Blob Transactions