EIP-3554 · Final · Core · 2021-05-06
EIP-3554: Difficulty Bomb Delay to December 2021
Pushed the proof-of-work difficulty bomb back by 9,700,000 blocks so it would not noticeably slow blocks until around December 2021.
What problem does it solve?
Proof-of-work Ethereum had a difficulty bomb built into its difficulty formula: an exponential term that, left alone, keeps raising difficulty until block times grow painfully long. It exists to force the community to ship regular upgrades and, eventually, to leave proof-of-work. Each time it approached, a hard fork had to delay it.
By spring 2021 the bomb was again on track to slow the chain. EIP-3554 delayed it so that its effect would first be felt in the first week of December 2021, giving time for the next upgrade or the Merge.
How it works
The difficulty calculation uses a fake block number for the bomb component only:
- From the fork block onward, the bomb is computed as if the chain were 9,700,000 blocks shorter than it really is.
- The rest of the difficulty adjustment (the part that reacts to block times) is unchanged.
Because the bomb term grows as 2 ** (period - 2) with one period per 100,000 blocks, subtracting a large offset resets it to a negligible level for months.
The spec's rationale includes a prediction script: with the 9.7M offset it estimated about a 0.1 second block-time increase in the first week of December 2021 and about 1 second by the end of that month. Enough to be noticed, not so much that there was no room to react.
It shipped in the London upgrade, alongside EIP-1559.
Sample code
The rule from the spec, plus the classic bomb term it feeds into (Python):
BOMB_DELAY_BLOCKS = 9_700_000
def fake_block_number(block_number: int, fork_block: int) -> int:
if block_number >= fork_block:
return max(0, block_number - BOMB_DELAY_BLOCKS)
return block_number
def bomb_term(block_number: int, fork_block: int) -> int:
period = fake_block_number(block_number, fork_block) // 100_000
return 2 ** (period - 2) if period >= 2 else 0
Total difficulty is the normal time-based adjustment plus bomb_term(...). Only the bomb input changes.
Things to know
- Status: Final, activated on mainnet with London (2021).
- It is one of a series of bomb delays. Earlier: EIP-2384 (Muir Glacier). Later: EIP-4345 (Arrow Glacier, to June 2022) and EIP-5133 (Gray Glacier). EIP-3238 was a competing delay proposal that stalled.
- The spec notes that misjudging the bomb's timing only lengthens block times until a fix is released; it is a usability risk rather than a security one.
- Since the Merge (EIP-3675) there is no proof-of-work difficulty, so the bomb no longer has any effect.