EIP-649 · Final · Core · 2017-06-21
EIP-649: Metropolis Difficulty Bomb Delay and Block Reward Reduction
In the Byzantium fork, pushed the proof-of-work difficulty bomb back by about 3 million blocks and cut the block reward from 5 to 3 ETH to keep issuance in check.
What problem does it solve?
Ethereum's proof-of-work difficulty included an exponential "ice age" term, the difficulty bomb. It was meant to make mining steadily harder until the chain had to move to proof-of-stake. By mid-2017 the bomb was already showing: average block times were creeping up. Proof-of-stake was not ready yet, so without action the chain would have slowed to a crawl.
EIP-649 delays the bomb. Removing the slowdown would also raise miner income, so it pairs the delay with a lower block reward to keep the system roughly where it was.
How it works
Fake block number for the bomb. In the difficulty formula, only the exponential ice-age part uses a shifted block number:
fake_block_number = max(0, block.number - 3_000_000) if block.number >= BYZANTIUM_FORK_BLKNUM else block.number
The rest of the difficulty adjustment is unchanged. The bomb now behaves as if the chain were 3 million blocks younger. The spec estimates this as about 42 million seconds, or roughly 1.4 years.
Lower rewards. From Byzantium on:
- Block reward: 3 ETH, down from 5 ETH.
- Uncle reward:
(8 - k) * 3 ETH / 8, wherekis how many blocks older the uncle is than the including block. - Nephew reward (for including an uncle):
3 ETH / 32.
These are the old formulas with the new base reward plugged in.
Sample code
Reward calculation for a block after Byzantium, as pseudocode:
BLOCK_REWARD = 3 * 10**18 # wei
def apply_rewards(block):
miner_total = BLOCK_REWARD
for uncle in block.uncles:
k = block.number - uncle.number
credit(uncle.coinbase, (8 - k) * BLOCK_REWARD // 8)
miner_total += BLOCK_REWARD // 32 # nephew reward
credit(block.coinbase, miner_total)
Things to know
- EIP-649 went live in the Byzantium hard fork (EIP-609) at mainnet block 4,370,000.
- It replaced an earlier reward-reduction idea (EIP-186), which was folded into this proposal.
- It was the first of several bomb delays. The next, EIP-1234 in Constantinople, delayed the bomb again and cut the reward to 2 ETH.
- Block rewards and the difficulty bomb ended with the move to proof-of-stake in 2022, so these rules now matter only for historical blocks.