EIP-3382 Hardcoding the block gas limit (Hardcoded Block Gas Limit)

No call decision · Fees & gas · EIP status Withdrawn · created 2021-03-13

A proposal to fix the gas limit processed per block at 12,500,000, preventing block producers from raising or lowering it arbitrarily.

Why it is needed

The block gas limit is one of the rare values in Ethereum that is not set by node consensus; it is raised or lowered directly by whoever is producing blocks. This was designed so that the network could respond quickly in urgent situations, but conversely there is no way to prevent a small number of producers from sharply raising or lowering the limit in a short period. Sudden changes are a sensitive factor that can affect the stability and decentralization of the entire network, and this proposal grew out of the concern that the authority to decide this is currently concentrated in the hands of a few.

What changes

Today

After EIP-3382

Who is affected

In depth

The field affected

The value this proposal touches is the gasLimit field in the block header. The original text notes that after EIP-1559 this value is called gasTarget. All blocks produced after FORK_BLOCK_NUMBER must have header.gasLimit exactly equal to the hardcoded constant BLOCK_GAS_LIMIT; if it differs, that block is treated as invalid.

The basis for the fixed value of 12,500,000

The reason 12,500,000 was proposed as the hardcoded value is that this was the actual block gas limit at the time this EIP was written. The original text states that the number itself is not the key point; the key idea is fixing the limit, and the actual value to apply could be revisited and changed later through a separate EIP.

Why the header structure was left unchanged

Fixing the gas limit to a constant could have meant removing the gasLimit field from the block header entirely, but the original text chose not to do that. Removing the field would change the data structure bound into the hash itself, which could cause unexpected side effects, so the field was kept in the header while only the value was forced to a constant.

Security considerations

Fixing the gas limit as a constant makes it harder to change the limit quickly going forward. The original text directly points out that if a situation arises where the network urgently needs to adjust the gas limit, this difficulty could become a problem.

Backwards compatibility

The original text briefly states that this change preserves backward compatibility, since it does not touch the existing block header structure or fields and only fixes the value.

Current status and reason for withdrawal

This EIP is in Withdrawn status. The withdrawal reason stated in the original header is that the author prefers EIP-3756, which addresses the same issue. In other words, the underlying concern about fixing the gas limit carried over into a different proposal, and this EIP stopped moving forward.

Original EIP · ← EIPs