pub fn validate_gas_used(
block_gas_used: u64,
block_header: &BlockHeader,
) -> Result<(), InvalidBlockError>Expand description
Validates that the block gas used matches the block header. For Amsterdam+ (EIP-7778), block_gas_used is PRE-REFUND and differs from receipt cumulative_gas_used which is POST-REFUND.