EIP-7783 · Stagnant · Informational · 2024-10-06
EIP-7783: Add Controlled Gas Limit Increase Strategy
Proposes a default client-side schedule that raises the block gas limit slowly and predictably over time, instead of relying on ad hoc validator votes.
What problem does it solve?
On Ethereum the block gas limit is not fixed by the protocol. Each block proposer may nudge it slightly up or down toward a target configured in their client. In practice that target only changes when operators coordinate and reconfigure their software, which tends to produce sudden, hard-to-predict jumps.
This informational EIP suggests a different default: clients ship with a gradual, rule-based schedule that raises the target a little every block (or every few thousand blocks) up to a cap. Growth becomes predictable, the ecosystem has time to watch metrics, and operators can still override the schedule at any time.
How it works
The proposal is a gas-limit selection strategy for block producers. It is not a consensus rule: proposers still must respect the protocol's existing limits on how much the gas limit can change per block. The strategy simply decides what value the proposer aims for.
Inputs common to all variants:
blockNumStart: when the ramp beginsinitialGasLimit: the starting limitgasLimitCap: the ceiling the ramp stops at
Three variants are described:
- Linear: add
rgas per block until the cap. - Stepwise linear: add
rgas everystep_blocks_intervalblocks. Bigger, more visible steps with "cooldown" periods to gather stable metrics. - Exponential: double the limit every
doubling_blocks_intervalblocks, up to the cap.
The cap acts as a deactivation safeguard: once reached, growth stops and the community can reassess. Validators can also halt the ramp or switch to a fixed value whenever they like, for example during a DoS incident.
Sample code
Stepwise linear strategy as a client could implement it (Python, based on the spec's pseudocode):
def target_gas_limit(block_num: int,
block_num_start: int,
initial_gas_limit: int,
r: int,
step_blocks_interval: int,
gas_limit_cap: int) -> int:
if block_num < block_num_start:
return initial_gas_limit
steps = (block_num - block_num_start) // step_blocks_interval
return min(gas_limit_cap, initial_gas_limit + r * steps)
# The proposer then moves the actual gas limit toward this target,
# within the per-block adjustment bounds the protocol already enforces.
Things to know
- Status: Stagnant, and of type Informational: it does not change consensus and needs no hard fork.
- The spec gives no single recommended parameter set for mainnet; its worked example is illustrative, and the example numbers in the text are internally inconsistent, so do not treat them as a plan.
- The spec's pseudocode is loose (some variables are used but not passed in); treat it as a sketch.
- Gas limit changes have since been coordinated in other ways, for example EIP-7935, which sets a default client gas limit of 60M.