post_merge_hardfork_fields

Function post_merge_hardfork_fields 

Source
pub fn post_merge_hardfork_fields<B, ChainSpec>(
    block: &SealedBlock<B>,
    chain_spec: &ChainSpec,
) -> Result<(), ConsensusError>
where B: Block, ChainSpec: EthereumHardforks,
Expand description

Validates the ommers hash and other fork-specific fields.

These fork-specific validations are:

  • EIP-4895 withdrawals validation, if shanghai is active based on the given chainspec. See more information about the specific checks in validate_shanghai_withdrawals.
  • EIP-4844 blob gas validation, if cancun is active based on the given chainspec. See more information about the specific checks in validate_cancun_gas.
  • EIP-7934 block size limit validation, if osaka is active based on the given chainspec.