pub const fn generate_valid_header(
header: Header,
eip_4844_active: bool,
blob_gas_used: u64,
excess_blob_gas: u64,
parent_beacon_block_root: FixedBytes<32>,
) -> Header
Expand description
Generates a header which is valid with respect to past and future forks. This means, for example, that if the withdrawals root is present, the base fee per gas is also present.
If blob gas used were present, then the excess blob gas and parent beacon block root are also present. In this example, the withdrawals root would also be present.
This does not, and should not guarantee that the header is valid with respect to anything else.