EIPs Explained

EIP-8372 · Draft · Core · 2026-08-06

EIP-8372: Normalized state gas limit

Proposes giving EIP-8037 state gas its own scaled block limit and normalizing it before computing gas_used, so the state-byte price can match real demand without leaving either state gas or execution gas underused.

What problem does it solve?

EIP-8037 splits gas into two kinds: state gas for creating new state (accounts, storage, code) and execution gas for everything else. Both share the same block limit, and the block's gas_used is the larger of the two totals. The cost per state byte (CPSB) therefore fixes how much new state the 50% target allows.

That only works if users happen to want to spend about half their gas on state creation at that price:

  • If state demand is lower, too little state is created relative to the intended growth target.
  • If it is higher, state gas hits its target first and becomes the bottleneck, crowding out execution.

A fully adaptive multi-dimensional fee market (EIP-7999) or a dynamic state price (EIP-8075) would solve this, but both are more complex. EIP-8372 does a simpler one-time calibration at the fork.

How it works

Two parameters are added to EIP-8037:

  • CPSB, chosen from observed demand, and
  • STATE_GAS_LIMIT_SCALE, the raw state-gas limit as a percentage of the block gas limit (denominator 100).

Transactions may use raw state gas up to block_gas_limit × SCALE / 100. For block accounting, state gas is normalized back to the regular scale before taking the maximum:

state_gas_limit = block_gas_limit * STATE_GAS_LIMIT_SCALE // 100
normalized_state = block_state_gas_used * 100 // STATE_GAS_LIMIT_SCALE
gas_used = max(block_execution_gas_used, normalized_state)
assert block_state_gas_used <= state_gas_limit
assert gas_used <= block_gas_limit

CPSB and the scale move together. If demand looks lower than expected, both go down (a cheaper state byte, a smaller raw limit); if higher, both go up. The number of state bytes at the 50% target stays the same; only the price that attracts that demand changes. No new transaction or header fields are added.

Sample code

The calibration recipe from the spec, as a sketch (all inputs are chosen by developers before the fork):

def calibrate(target_state_growth_per_year, expected_block_gas_limit, blocks_per_year, chosen_cpsb):
    # CPSB that maps the growth target to 50% of an unscaled limit
    baseline_cpsb = expected_block_gas_limit * blocks_per_year // (2 * target_state_growth_per_year)
    # chosen_cpsb comes from demand elasticities observed after Glamsterdam
    scale = chosen_cpsb * 100 // baseline_cpsb
    return chosen_cpsb, scale          # -> CPSB, STATE_GAS_LIMIT_SCALE

Things to know

  • Status: Draft. CPSB and STATE_GAS_LIMIT_SCALE are both still TBD.
  • The values are fixed at activation. If demand is misjudged, fixing it needs another hard fork, so the spec asks for stress-testing across plausible demand elasticities.
  • Maximum state-byte capacity per block stays roughly the same regardless of the calibration (up to rounding).
  • Builders, clients and gas estimators must use the scaled limit and normalized accounting after activation; transaction formats and receipts do not change.

#gas #state-growth #gas-limit #core #glamsterdam

Details

Authors
Anders Elowsson (@anderselowsson)
Status
Draft
Type
Standards Track / Core
Created
2026-08-06
Requires

Machine-readable: Markdown · JSON