EIP-7790 · Stagnant · Informational · 2024-10-18
EIP-7790: Controlled Gas Limit Increase Guidelines
Informational proposal giving concrete numbers for EIP-7783's gradual gas limit increase: start at 30M gas, add 6 gas per block, and stop at a 60M cap.
What problem does it solve?
Ethereum's block gas limit is not set by a hard fork. Each block proposer can nudge it slightly up or down from its parent, and in practice clients ship a default target that validators follow. Changing that default has historically meant coordinated, step-wise jumps.
EIP-7783 proposes a smoother mechanism: clients raise their target gas limit a little every block according to a schedule, until a cap is reached. It defines the mechanism but not the numbers. EIP-7790 fills in those parameters.
How it works
The proposed parameters are:
| Parameter | Value | Meaning |
|---|---|---|
blockNumStart |
21792420 |
Block at which the increase begins |
initialGasLimit |
30_000_000 |
Gas limit at the start (the default when written) |
r |
6 |
Gas added to the target per block |
gasLimitCap |
60_000_000 |
Upper bound; the target never goes above this |
Going from 30M to 60M at 6 gas per block takes 5,000,000 blocks, roughly 694 days at 12-second slots. The authors argue that a slow, predictable ramp avoids sudden jumps in block size, and the cap keeps blocks from growing without limit.
Because the gas limit is already a validator choice within protocol bounds, this needs no hard fork. Validators can still override the target if the network shows strain.
Sample code
Target gas limit a client would aim for at a given block, using EIP-7783's linear schedule with these parameters:
const BLOCK_NUM_START = 21_792_420n;
const INITIAL_GAS_LIMIT = 30_000_000n;
const RATE = 6n; // gas per block
const GAS_LIMIT_CAP = 60_000_000n;
function targetGasLimit(blockNumber: bigint): bigint {
if (blockNumber < BLOCK_NUM_START) return INITIAL_GAS_LIMIT;
const target = INITIAL_GAS_LIMIT + RATE * (blockNumber - BLOCK_NUM_START);
return target > GAS_LIMIT_CAP ? GAS_LIMIT_CAP : target;
}
console.log(targetGasLimit(22_000_000n)); // 31_245_480n
The actual header value still moves toward this target only within the per-block adjustment bounds allowed by the protocol.
Things to know
- Status: Stagnant, and so is EIP-7783. The schedule was not adopted as written. Mainnet instead raised the limit through validator signalling and new client defaults; EIP-7935 (Final) sets the default gas limit to 60M.
- The spec text is internally inconsistent. It describes the start block as "February 7, 2024" and claims the rate would "triple" the limit in about 47 months, which does not match a 60M cap reached in about 694 days. Treat the parameter table as the proposal and the prose as approximate.
- Gas limit increases raise hardware, bandwidth and state-growth demands on node operators, which is why the authors stress gradual change and a cap.