EIP-1227 · Stagnant · Core · 2018-07-18
EIP-1227: Defuse Difficulty Bomb and Reset Block Reward
A 2018 proposal to permanently remove the proof-of-work difficulty bomb and restore the 5 ETH block reward, arguing the bomb took real choice away from users during hard forks.
What problem does it solve?
Ethereum's proof-of-work difficulty formula included an exponential term, the "difficulty bomb" or "ice age", introduced with Homestead (EIP-2). As it grows, blocks take longer and longer to mine, until a chain that does not upgrade becomes unusable. Core developers used it as a forcing function: clients had to hard fork periodically to push it back.
The author of EIP-1227 argued that this undermines user choice. During Byzantium, which included the bomb delay and reward cut of EIP-649, the original chain was already seeing block times above 30 seconds, so staying on it was not a realistic option. In the author's view the bomb's only purpose is to make it hard to keep the old chain alive after a fork, which removes the community's power to reject a controversial change by simply not upgrading.
How it works
Starting at an unspecified FORK_BLKNUM:
- Defuse the bomb. Remove the exponential component (
2 ** ((block.number // 100000) - 2)) fromcalc_difficultyentirely, rather than delaying it. - Reset issuance to pre-Byzantium levels.
- Block reward: 5 ETH.
- Uncle reward:
(8 - k) * block_reward / 8, wherekis how many blocks older the uncle is. - Nephew reward (for including an uncle):
block_reward / 32.
The author describes the reward reset as optional and secondary; removing the bomb was the main goal. The changes were specified in the same style as EIP-649 to keep client work small.
Sample code
Pseudocode for the reward rules after the fork:
FIVE_ETH = 5 * 10**18
def block_reward(number, fork_blknum, old_reward):
return FIVE_ETH if number >= fork_blknum else old_reward
def uncle_reward(block_number, uncle_number, reward):
k = block_number - uncle_number # 1..6
return (8 - k) * reward // 8
def nephew_reward(reward):
return reward // 32
def calc_difficulty(parent, timestamp):
diff = adjust_for_block_time(parent, timestamp)
# EIP-1227: no exponential "ice age" term is added here
return diff
Things to know
- Status: Stagnant. This EIP was never adopted. Mainnet instead kept delaying the bomb with new EIPs, starting with EIP-1234 in Constantinople, which also lowered the block reward further to 2 ETH.
- The proposal recommended shipping it in its own isolated hard fork precisely because it was expected to be controversial.
- Since The Merge (EIP-3675) moved Ethereum to proof of stake, there is no mining difficulty or block reward of this kind, so the debate is now historical. It remains a useful record of the governance argument around the ice age.