Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article examines EIP-3554, a proposal to reset or remove the difficulty bomb in connection with the planned Shanghai upgrade or the Merge.
This article translates, summarizes, and expands on the proposal below.
I have also covered a variety of other EIPs.
Overview
This proposal concerns delaying the blockchain's difficulty bomb. A difficulty bomb is a mechanism in certain block production algorithms that deliberately increases mining difficulty over time. It is particularly associated with blockchains such as Ethereum, where it was designed to improve network sustainability and security and encourage a transition to a new consensus mechanism such as proof of stake.
Starting at a block number designated by FORK_BLOCK_NUMBER, clients (the computers performing mining) calculate difficulty using a fake block number that makes the chain appear to be 9,700,000 blocks behind its actual height.
This adjustment delays the effect of the difficulty bomb so that it becomes noticeable in the first week of December 2021.
Such measures are typically part of blockchain upgrades, helping maintain network health while enabling a smooth transition to new technologies and algorithms. Delaying the difficulty bomb can also benefit miners (participants who produce blocks and confirm transactions) by temporarily making mining easier.
Motivation
The proposal discusses blockchain upgrades, particularly those planned for Ethereum. The Shanghai upgrade refers to a specific upgrade of the Ethereum network. The Merge refers to the process of completing Ethereum's transition from proof of work to proof of stake. The transition was intended to substantially improve network scaling and data storage efficiency and strengthen network security.
At the time of the proposal, the goal was to carry out the Shanghai upgrade or the Merge before December 2021. This reflects the Ethereum development team's intention to deliver these important upgrades by the end of 2021. An upgrade within that period would also require changes to the difficulty bomb.
The difficulty bomb would be reset or removed altogether during the upgrade. These were the options for handling the bomb at the time. Because the bomb increases mining difficulty over time, it would no longer be needed once the Merge was complete and mining was no longer necessary. The upgrade would therefore require a decision between resetting the difficulty bomb and removing it entirely. This was an important decision for maintaining the network's sustainability and security.
Specification
The proposal describes a concrete approach to adjusting difficulty in blockchains such as Ethereum. Its purpose is to mitigate the impact of the difficulty bomb. The difficulty bomb increases mining difficulty exponentially over time, providing an incentive for the blockchain network to transition to a new consensus mechanism such as proof of stake.
The proposed approach replaces the block.number (current block number) used by the calc_difficulty function with a fake_block_number (fake block number).
The fake_block_number is calculated as follows.
fake_block_number = max(0, block.number - 9_700_000) if block.number >= FORK_BLOCK_NUMBER else block.numberFORK_BLOCK_NUMBERdenotes the specific block number at which this difficulty adjustment rule takes effect.- When
block.number >= FORK_BLOCK_NUMBER(that is, the current block number is at or above the specified block number), subtract9_700_000fromblock.number(the current block number) and use the result asfake_block_number.- This effectively delays the impact of the difficulty bomb by
9,700,000blocks.
- This effectively delays the impact of the difficulty bomb by
- The expression
max(0, block.number - 9_700_000)prevents the subtraction from yielding a negative result.- If the result would be less than
0, use0instead.
- If the result would be less than
- If
block.number < FORK_BLOCK_NUMBER(the specified block number has not yet been reached), use the actual block number for the difficulty calculation as usual.
This change temporarily mitigates the effect of the difficulty bomb, causing mining difficulty to increase later than originally scheduled. It is a temporary measure to allow the blockchain network to prepare for a major upgrade or a change in consensus mechanism.
Additional Notes
def predict_diff_bomb_effect(current_blknum, current_difficulty, block_adjustment, months):
'''
Predicts the effect on block time (as a ratio) in a specified amount of months in the future.
Vars used in last prediction:
current_blknum = 12382958
current_difficulty = 7393633000000000
block adjustment = 9700000
months = 6
'''
blocks_per_month = (86400 * 30) // 13.3
future_blknum = current_blknum + blocks_per_month * months
diff_adjustment = 2 ** ((future_blknum - block_adjustment) // 100000 - 2)
diff_adjust_coeff = diff_adjustment / current_difficulty * 2048
return diff_adjust_coeff
diff_adjust_coeff = predict_diff_bomb_effect(12382958,7393633000000000,9700000,6)
The code above predicts the future impact of the difficulty bomb on a blockchain such as Ethereum. The difficulty bomb increases mining difficulty exponentially over time, thereby increasing the time required to produce a block (block time). The script predicts how block time will be affected at a specified point in the future.
The predict_diff_bomb_effect function takes the current block number, current difficulty, block adjustment (the block-number offset used to adjust the difficulty bomb), and the number of months to project into the future.
It first calculates the number of blocks per month (multiplying 86400 seconds by 30 days and dividing by the average block time of 13.3 seconds), then uses this value to estimate the future block number.
It calculates the difficulty adjustment from this projected block number and compares it with current difficulty to determine a coefficient (ratio) representing the effect on block time.
Specifically, diff_adjustment models the exponentially increasing effect of the difficulty bomb. The expression future_blknum - block_adjustment subtracts the adjustment from the projected block number, divides the result by 100,000, and then subtracts 2.
Raising 2 to the resulting power gives the difficulty adjustment.
This value is expressed relative to current difficulty to calculate the coefficient diff_adjust_coeff, which represents the change in block time.
The script's output, diff_adjust_coeff, is a ratio representing the predicted change in block time.
For example, a coefficient close to 1 indicates little change in block time, while a larger coefficient indicates a substantial increase.
According to the script's accompanying explanation, the delay was projected to be 0.1 seconds in the first week of December 2021 and 1 second by the end of the month. This suggests that the impact of the difficulty bomb would become noticeable but would still leave time to respond.
Backward Compatibility
There are no particular backward compatibility issues.
Security Considerations
This section concerns miscalculations of difficulty in blockchains such as Ethereum and their impact on block production time (block time). Difficulty measures the computational work required to mine a block. A higher difficulty makes producing new blocks harder.
A difficulty miscalculation means that unexpected changes in difficulty cause longer block times than predicted. This may continue until a hard fork (a blockchain fork involving a major upgrade or correction) is released. Wild shifts in difficulty can have a substantial impact on block times and reduce network usability.
Gradual changes in block times resulting from long-term difficulty adjustments can also affect the timing of the difficulty bomb (difficulty bomb epochs). The bomb is a mechanism that increases difficulty exponentially once predetermined block heights are reached. When the bomb takes effect, mining difficulty rises sharply and block times become significantly longer.
Although such changes can affect network usability, they are considered unlikely to create security problems. Longer block times may cause inconveniences such as delayed transaction processing, but they do not affect the blockchain's fundamental security mechanisms. Nevertheless, because they affect the user experience, developers must pay attention to difficulty adjustments and take measures such as hard forks when needed.
Citation
James Hancock (@madeoftin), "EIP-3554: Difficulty Bomb Delay to December 2021," Ethereum Improvement Proposals, no. 3554, May 2021. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-3554.
Conclusion
This article covered EIP-3554, which proposed resetting or completely removing the difficulty bomb in connection with the planned Shanghai upgrade or the Merge. I hope this explanation was helpful.
If you have any questions, feel free to contact me via Twitter direct messages.
I also share information on other platforms, which you are welcome to explore.


