Skip to main content

check_gas_limit

Function check_gas_limit 

Source
fn check_gas_limit(
    spec: TempoHardfork,
    tx: &TempoTxEnv,
    adjusted_gas: &InitialAndFloorGas,
) -> Option<FrameResult>
Expand description

Checks if gas limit is sufficient and returns OOG frame result if not.

For T0+, validates gas limit covers intrinsic gas. For pre-T0, skips check to maintain backward compatibility.