pub fn validate_4844_header_standalone(
    header: &SealedHeader,
) -> Result<(), ConsensusError>
Expand description

Validates that the EIP-4844 header fields exist and conform to the spec. This ensures that:

  • blob_gas_used exists as a header field
  • excess_blob_gas exists as a header field
  • parent_beacon_block_root exists as a header field
  • blob_gas_used is less than or equal to MAX_DATA_GAS_PER_BLOCK
  • blob_gas_used is a multiple of DATA_GAS_PER_BLOB
  • excess_blob_gas is a multiple of DATA_GAS_PER_BLOB