EIP-1276 · Stagnant · Core · 2018-07-31
EIP-1276: Eliminate Difficulty Bomb and Adjust Block Reward on Constantinople Shift
A Constantinople-era proposal to permanently delete the proof-of-work difficulty bomb and cut the block reward to 2 ETH, instead of delaying the bomb yet again.
What problem does it solve?
Ethereum's proof-of-work difficulty formula contained an exponential "difficulty bomb" term that grows every 100,000 blocks. It was meant to push the network towards proof-of-stake, but because that transition kept slipping, block times started to rise and the bomb had to be postponed by hard forks.
ERC-1276 argued that repeatedly delaying the bomb was the wrong fix. It proposed removing the bomb entirely at the Constantinople fork and, at the same time, lowering the block reward to reduce issuance and the incentive for ever more mining hashpower.
How it works
From the fork block (CNSTNTNPL_FORK_BLKNUM) onward:
- Difficulty: drop the exponential component
int(2**((block.number // 100000) - 2))fromcalc_difficulty. Difficulty then depends only on the usual parent-based adjustment, not the block number. - Block reward: 2 ETH.
- Uncle reward: unchanged formula, rescaled to the new base reward.
- Nephew reward: the includer's bonus per uncle, also rescaled.
Sample code
Reward rules after the fork, as pseudocode following the spec:
NEW_BLOCK_REWARD = 2 * 10**18 # 2 ETH in wei
def block_reward(block):
return NEW_BLOCK_REWARD if block.number >= CNSTNTNPL_FORK_BLKNUM else block.reward
def uncle_reward(block, uncle):
k = block.number - uncle.number # 1..6
return (8 - k) * NEW_BLOCK_REWARD // 8
def nephew_reward():
return NEW_BLOCK_REWARD // 32 # per included uncle
# Difficulty: same as before, minus the bomb term
# epsilon = int(2 ** ((block.number // 100000) - 2)) <- removed
Things to know
- Status: Stagnant. It was not adopted.
- The spec itself notes it directly opposes EIP-1234, which Constantinople actually used: that EIP also set the reward to 2 ETH but delayed the bomb rather than removing it.
- The change was not backwards compatible: it alters both the difficulty calculation and the reward schedule, so it could only ship in a scheduled hard fork. No test cases or implementation were ever written.
- EIP-649 (Byzantium) had earlier set the pattern of delaying the bomb and lowering the reward together.
- Since the Merge, Ethereum no longer uses proof-of-work, so block rewards and the difficulty bomb no longer apply to mainnet.