The mathematics of the Ethereum difficulty bomb

The difficulty bomb increases mining difficulty every 100,000 blocks by a factor of 2. This mechanism, which developers call the "ice age", forces miners toward Proof-of-Stake by making Proof-of-Work less profitable. The formula for minimal difficulty uses a lower bound that grows exponentially based on the block number. The current formula defines minimal difficulty as $2^{(block.number/100000) – 2}$. At block 200,000, the minimal difficulty reaches 1. At block 300,000, it reaches 2. However, by block 1,920,000, the difficulty reaches 131,072. At block 2,000,000, the difficulty hits 262,144. By block 2,500,000, the difficulty reaches 8,388,608. At block 3,000,000, the difficulty hits 268,435,456. By block 4,000,000, the difficulty reaches 274,877,906,944. At block 5,000,000, it reaches 281 TH. By block 5,200,000, the difficulty hits 1126 TH. Finally, at block 6,000,000, the difficulty reaches 288230 TH. Developers introduced this difficulty growth in the Homestead update through EIP-2. To pause growth, the term $(block.number / 100000) – 2$ must be fixed to a concrete value for the range 3,000,000 to 5,000,000. The current difficulty used for mining is 8 TH, while the difficulty in the Forked ETH Blockchain is 71 TH.

Managing rewards through Ethereum Improvement Proposals

The Ethereum Foundation manages the transition from Proof-of-Work to Proof-of-Stake through various updates. Proof-of-Stake offers reduced energy consumption, increased security, and a more decentralized network. Validators replace miners and receive rewards based on the amount of cryptocurrency they stake as collateral. Developers proposed three scenarios to handle block rewards during the transition. EIP-858 would reduce the reward to 1 ETH. EIP-1234 would reduce the reward to 2 ETH. EIP-1295 would keep the reward at 3 ETH but change the Proof-of-Work reward structure. The decision to delay the difficulty bomb by 12 months through EIP-1234 aims to return the blockchain to 30-second block creation in the winter of 2019 and simultaneously reduce block rewards at the Constantinople hard fork. EIP-649, which arrived in 2017, delayed the bomb for 18 months and reduced the reward from 5 ETH to 3 ETH. EIP-3554, which activated in August 2021, moved the bomb activation to December 2021.

Update Name EIP Number Delay Duration Block Reward
2017 Update EIP-649 18 months 3 ETH
2018 Update EIP-1234 12 months 2 ETH
2021 Update EIP-3554 N/A N/A

You should understand how these small adjustments change the economic landscape for miners.

The Ethereum Classic divergence and protocol stability

Ethereum Classic faces different challenges because it does not plan to migrate to Proof-of-Stake soon. The difficulty bomb threatens the Ethereum Classic network with a collapse. Mining on the Ethereum Classic chain becomes unprofitable at block 6,500,000 in September 2018. To prevent this, a proposal suggests removing the bomb at block 5,900,000. This block arrives in May 2018 and requires 137 Gh of additional difficulty. If difficulty grows above 20% of the standard difficulty, the network risks security issues if half the current miners leave. With a current difficulty of 7,000 Gh/s, the difficulty should not exceed 700 Gh. A hard fork to remove the bomb requires modifying all existing peer implementations and giving miners and exchanges time to upgrade.

To make a hard fork successful, it requires six weeks to update and release all critical software and six weeks to upgrade miners and exchanges. This gives up to three months for enabling the proposal. The earliest safe block is 5,700,000 in April 2018, while the latest safe block is 6,100,000 in June 2018. In 2016, developers suggested a different approach to manage the difficulty bomb growth. They proposed changing the formula to pause difficulty growth between blocks 3,000,000 and 5,000,000. This change would use a dynamic formula to fix the value instead of letting it grow. Using this method, the minimal difficulty at block 4,000,000 remains 268,435,456. At block 5,000,000, it remains 268,435,456. By block 5,200,000, the difficulty reaches 1 GH. By block 6,000,000, it reaches 274 GH. This pause would give developers enough time to implement and test all protocol upgrades for the next version.

The Istanbul oversight and the Muir Glacier fix

The Istanbul hard fork included a mistake because developers forgot to adjust the difficulty bomb. This error caused an unplanned 20% reduction in the inflation rate and the security of the Ethereum network. Bitcoin maximalist Udi Wertheimer criticized the choice of a New Year’s Day upgrade date, while Tuur Demeester called the difficulty bomb a way to remove economic incentives and network protection. The error necessitated the Muir Glacier upgrade, which launched on January 1. This upgrade addressed the mistake at block 9,200,000 and included EIP-2384. The Muir Glacier update delays the ice age by 4 million blocks, which covers approximately 611 days. The Beacon Chain represents the first major structural shift of the Serenity upgrade. This is scheduled for the early part of 2020, followed by the Shard Chains upgrade. How will developers prevent such oversight in the upcoming transition to Proof-of-Stake?

Newsletter