reth::consensus_common::validation

Function validate_header_gas

Source
pub fn validate_header_gas<H>(header: &H) -> Result<(), ConsensusError>
where H: BlockHeader,
Expand description

Gas used needs to be less than gas limit. Gas used is going to be checked after execution.