Skip to main content

decode_block_header

Function decode_block_header 

Source
pub fn decode_block_header<'a>(
    input: &'a [u8],
    field_set: HeaderFieldSet,
    limits: DecodeLimits,
) -> Result<UnvalidatedBlockHeader<'a>, BlockHeaderDecodeError>
Expand description

Decodes one canonical execution block header under explicit limits.

The selected HeaderFieldSet controls which optional fork fields must be present. This function is syntactic: successfully decoding a header does not prove block validity, fork activation, root correctness, or consensus-layer commitments.