Function validate_4844_header_standalone
pub fn validate_4844_header_standalone<H>(
header: &H,
blob_params: BlobParams,
) -> Result<(), ConsensusError>where
H: BlockHeader,
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 fieldexcess_blob_gas
exists as a header fieldparent_beacon_block_root
exists as a header fieldblob_gas_used
is a multiple ofDATA_GAS_PER_BLOB
excess_blob_gas
is a multiple ofDATA_GAS_PER_BLOB
blob_gas_used
doesn’t exceed the max allowed blob gas based on the given params
Note: This does not enforce any restrictions on blob_gas_used