{"eip":4345,"title":"Difficulty Bomb Delay to June 2022","description":"Delays the difficulty bomb to be noticeable in June 2022.","authors":["Tim Beiko (@timbeiko)","James Hancock (@MadeOfTin)","Thomas Jay Rush (@tjayrush)"],"status":"Final","type":"Standards Track","category":"Core","created":"2021-10-05","discussionsTo":"https://ethereum-magicians.org/t/eip-4345-difficulty-bomb-delay-to-may-2022/7209","repo":"EIPs","label":"EIP-4345","officialUrl":"https://eips.ethereum.org/EIPS/eip-4345","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4345.md","url":"https://eips.huatuo.xyz/eip-4345/","tldr":{"en":"Pushed back Ethereum's difficulty bomb by 10.7 million blocks so it would not start slowing proof-of-work blocks until around June 2022, buying time for The Merge.","ja":"Ethereum の難易度爆弾を 1,070 万ブロック先送りし、2022 年 6 月ごろまで PoW ブロックが遅くなり始めないようにして、The Merge までの時間を稼いだ。","ko":"이더리움의 난이도 폭탄을 1,070만 블록 뒤로 미루어, 2022년 6월 무렵까지는 작업 증명 블록이 느려지기 시작하지 않게 하고 머지(The Merge)를 위한 시간을 벌었다.","zh":"将以太坊的难度炸弹推迟了 1070 万个区块，使其要到 2022 年 6 月前后才会开始拖慢工作量证明区块，为合并（The Merge）争取了时间。"},"tags":["difficulty-bomb","core","proof-of-work","hard-fork","arrow-glacier"],"explainers":{"en":{"lang":"en","tldr":"Pushed back Ethereum's difficulty bomb by 10.7 million blocks so it would not start slowing proof-of-work blocks until around June 2022, buying time for The Merge.","tags":["difficulty-bomb","core","proof-of-work","hard-fork","arrow-glacier"],"related":[3554,5133,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-4345/","markdown":"## What problem does it solve?\n\nProof-of-work Ethereum had a **difficulty bomb** (also called the ice age). It is an extra term in the difficulty formula that doubles every 100,000 blocks. Once it grows large enough, blocks get slower and slower until the chain is close to unusable. The bomb was there on purpose, to force regular hard forks and, in the end, the move to proof-of-stake.\n\nThe previous delay, [EIP-3554](/eip-3554/), set the bomb to be felt around December 2021. The Merge was not ready by then, so the bomb had to be pushed back again. EIP-4345 did that. It shipped in the **Arrow Glacier** upgrade in December 2021, a hard fork that contained only this change.\n\n## How it works\n\nThe difficulty calculation does not use the real block number for the bomb term. It uses a **fake block number** that is 10,700,000 blocks lower:\n\n```python\nfake_block_number = max(0, block.number - 10_700_000) if block.number \u003e= FORK_BLOCK_NUMBER else block.number\n```\n\nOnly the exponential ice-age part of `calc_difficulty` uses this value. The regular difficulty adjustment, which keeps block times near the target, still uses the real number.\n\nBecause the bomb term is `2 ** (fake_block_number // 100_000 - 2)`, removing 10.7M blocks makes it vanishingly small again. The authors' projection, using chain data from October 2021, estimated about +0.1 s per block by June 2022 and about +0.5 s by July 2022. That is noticeable enough to prompt action, but leaves room to delay again if needed.\n\n## Sample code\n\nThe bomb component before and after the fork, in Python:\n\n```python\nBOMB_DELAY = 10_700_000\n\ndef ice_age_component(block_number: int, fork_block: int) -\u003e int:\n    n = max(0, block_number - BOMB_DELAY) if block_number \u003e= fork_block else block_number\n    period = n // 100_000\n    return 2 ** (period - 2) if period \u003e= 2 else 0\n\n# e.g. block 14,000,000 after the fork behaves like block 3,300,000:\nprint(ice_age_component(14_000_000, fork_block=0))  # 2**31, tiny next to mainnet difficulty\n```\n\n## Things to know\n\n- **Status: Final.** It is part of mainnet history (Arrow Glacier).\n- The delay was not enough on its own. The Merge slipped past June 2022, so [EIP-5133](/eip-5133/) (Gray Glacier) delayed the bomb again.\n- The bomb no longer matters. Since The Merge ([EIP-3675](/eip-3675/)), blocks come from proof-of-stake and there is no difficulty to inflate.\n- The Security Considerations note that a drop in hashrate before The Merge could make the bomb hit earlier than predicted. The 10.7M offset was chosen with that in mind.\n"},"ja":{"lang":"ja","tldr":"Ethereum の難易度爆弾を 1,070 万ブロック先送りし、2022 年 6 月ごろまで PoW ブロックが遅くなり始めないようにして、The Merge までの時間を稼いだ。","tags":["difficulty-bomb","core","proof-of-work","hard-fork","arrow-glacier"],"related":[3554,5133,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-4345/","markdown":"## 何を解決するのか\n\nPoW 時代の Ethereum には**難易度爆弾**（アイスエイジとも呼ばれます）がありました。これは難易度の計算式に加えられた追加の項で、10 万ブロックごとに倍になります。十分に大きくなると、ブロックはどんどん遅くなり、チェーンはほとんど使えなくなります。爆弾は意図的に仕込まれたもので、定期的なハードフォークを強制し、最終的に PoS への移行を促すためでした。\n\n前回の延期である [EIP-3554](/eip-3554/) は、爆弾の影響が 2021 年 12 月ごろに感じられるように設定しました。その時点では The Merge の準備が整っていなかったため、爆弾をもう一度先送りする必要がありました。EIP-4345 がそれを行いました。これは 2021 年 12 月の **Arrow Glacier** アップグレードに含まれて出荷されました。この変更だけを含むハードフォークです。\n\n## 仕組み\n\n難易度の計算は、爆弾の項には実際のブロック番号を使いません。1,070 万ブロック小さい**偽のブロック番号**を使います。\n\n```python\nfake_block_number = max(0, block.number - 10_700_000) if block.number \u003e= FORK_BLOCK_NUMBER else block.number\n```\n\nこの値を使うのは、`calc_difficulty` のうち指数関数的なアイスエイジの部分だけです。ブロック時間をターゲット付近に保つ通常の難易度調整は、引き続き実際の番号を使います。\n\n爆弾の項は `2 ** (fake_block_number // 100_000 - 2)` なので、1,070 万ブロックを引くと、再び無視できるほど小さくなります。著者の予測は、2021 年 10 月のチェーンデータを用い、2022 年 6 月までにブロックあたり約 +0.1 秒、2022 年 7 月までに約 +0.5 秒と見積もりました。これは対応を促すには十分に目立ちますが、必要ならもう一度延期する余地を残しています。\n\n## サンプルコード\n\nフォーク前後の爆弾の項を Python で示します。\n\n```python\nBOMB_DELAY = 10_700_000\n\ndef ice_age_component(block_number: int, fork_block: int) -\u003e int:\n    n = max(0, block_number - BOMB_DELAY) if block_number \u003e= fork_block else block_number\n    period = n // 100_000\n    return 2 ** (period - 2) if period \u003e= 2 else 0\n\n# e.g. block 14,000,000 after the fork behaves like block 3,300,000:\nprint(ice_age_component(14_000_000, fork_block=0))  # 2**31, tiny next to mainnet difficulty\n```\n\n## 知っておくべきこと\n\n- **ステータス: Final。** メインネットの歴史（Arrow Glacier）の一部です。\n- この延期だけでは十分ではありませんでした。The Merge は 2022 年 6 月を過ぎてしまい、そのため [EIP-5133](/eip-5133/)（Gray Glacier）が爆弾を再び先送りしました。\n- 爆弾はもう関係ありません。The Merge（[EIP-3675](/eip-3675/)）以降、ブロックは PoS によって生成され、膨らませる難易度は存在しません。\n- Security Considerations は、The Merge の前にハッシュレートが低下すると、爆弾が予測より早く効き始める可能性があると述べています。1,070 万というオフセットは、それを念頭に選ばれました。\n"},"ko":{"lang":"ko","tldr":"이더리움의 난이도 폭탄을 1,070만 블록 뒤로 미루어, 2022년 6월 무렵까지는 작업 증명 블록이 느려지기 시작하지 않게 하고 머지(The Merge)를 위한 시간을 벌었다.","tags":["difficulty-bomb","core","proof-of-work","hard-fork","arrow-glacier"],"related":[3554,5133,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-4345/","markdown":"## 어떤 문제를 해결하나요?\n\n작업 증명 시절의 이더리움에는 **난이도 폭탄**(아이스 에이지라고도 함)이 있었습니다. 난이도 공식에 들어간 추가 항으로, 10만 블록마다 두 배가 됩니다. 충분히 커지면 블록이 점점 느려져 체인을 거의 쓸 수 없게 됩니다. 폭탄은 정기적인 하드 포크를 강제하고 결국 지분 증명으로의 전환을 이끌려고 일부러 넣은 것입니다.\n\n직전의 연기였던 [EIP-3554](/eip-3554/)는 폭탄의 영향이 2021년 12월 무렵 느껴지도록 설정했습니다. 그때까지 머지가 준비되지 않아 폭탄을 다시 미뤄야 했습니다. EIP-4345가 그 일을 했습니다. 2021년 12월 **Arrow Glacier** 업그레이드로 출시되었으며, 이 변경만 담은 하드 포크였습니다.\n\n## 어떻게 동작하나요?\n\n난이도 계산은 폭탄 항에 실제 블록 번호를 쓰지 않습니다. 1,070만 블록 낮은 **가짜 블록 번호**를 사용합니다.\n\n```python\nfake_block_number = max(0, block.number - 10_700_000) if block.number \u003e= FORK_BLOCK_NUMBER else block.number\n```\n\n`calc_difficulty` 중 지수적으로 커지는 아이스 에이지 부분만 이 값을 사용합니다. 블록 시간을 목표 근처로 유지하는 일반 난이도 조정은 여전히 실제 번호를 사용합니다.\n\n폭탄 항이 `2 ** (fake_block_number // 100_000 - 2)`이므로 1,070만 블록을 빼면 다시 무시할 수 있을 만큼 작아집니다. 저자들이 2021년 10월의 체인 데이터로 낸 전망은 2022년 6월까지 블록당 약 +0.1초, 2022년 7월까지 약 +0.5초였습니다. 조치를 촉구할 만큼은 눈에 띄지만, 필요하면 다시 미룰 여유도 남깁니다.\n\n## 샘플 코드\n\n포크 전후의 폭탄 항을 Python으로 나타냅니다.\n\n```python\nBOMB_DELAY = 10_700_000\n\ndef ice_age_component(block_number: int, fork_block: int) -\u003e int:\n    n = max(0, block_number - BOMB_DELAY) if block_number \u003e= fork_block else block_number\n    period = n // 100_000\n    return 2 ** (period - 2) if period \u003e= 2 else 0\n\n# e.g. block 14,000,000 after the fork behaves like block 3,300,000:\nprint(ice_age_component(14_000_000, fork_block=0))  # 2**31, tiny next to mainnet difficulty\n```\n\n## 알아둘 점\n\n- **상태: Final.** 메인넷 역사(Arrow Glacier)의 일부입니다.\n- 이 연기만으로는 충분하지 않았습니다. 머지가 2022년 6월을 넘겼고, 그래서 [EIP-5133](/eip-5133/)(Gray Glacier)이 폭탄을 다시 미뤘습니다.\n- 폭탄은 이제 의미가 없습니다. 머지([EIP-3675](/eip-3675/)) 이후 블록은 지분 증명으로 만들어지며 부풀릴 난이도가 없습니다.\n- Security Considerations는 머지 전에 해시레이트가 떨어지면 폭탄이 예상보다 일찍 작동할 수 있다고 언급합니다. 1,070만이라는 오프셋은 이를 염두에 두고 선택되었습니다.\n"},"zh":{"lang":"zh","tldr":"将以太坊的难度炸弹推迟了 1070 万个区块，使其要到 2022 年 6 月前后才会开始拖慢工作量证明区块，为合并（The Merge）争取了时间。","tags":["difficulty-bomb","core","proof-of-work","hard-fork","arrow-glacier"],"related":[3554,5133,3675],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-4345/","markdown":"## 它解决什么问题？\n\n工作量证明时代的以太坊有一个**难度炸弹**（也叫冰河期）。它是难度公式中的一个额外项，每 10 万个区块翻一倍。一旦增长到足够大，区块会越来越慢，直到整条链几乎无法使用。炸弹是有意设置的，目的是迫使定期进行硬分叉，并最终转向权益证明。\n\n上一次推迟，即 [EIP-3554](/eip-3554/)，把炸弹设定在 2021 年 12 月前后开始显现。到那时合并还没有准备好，所以炸弹必须再次推迟。EIP-4345 做到了这一点。它随 2021 年 12 月的 **Arrow Glacier** 升级上线，这是一次只包含这项变更的硬分叉。\n\n## 它如何运作\n\n难度计算对炸弹项并不使用真实的区块号，而是使用一个小 1070 万的**伪区块号**：\n\n```python\nfake_block_number = max(0, block.number - 10_700_000) if block.number \u003e= FORK_BLOCK_NUMBER else block.number\n```\n\n只有 `calc_difficulty` 中指数增长的冰河期部分使用这个值。使区块时间保持在目标附近的常规难度调整仍然使用真实区块号。\n\n由于炸弹项为 `2 ** (fake_block_number // 100_000 - 2)`，减去 1070 万个区块会使它再次小到可以忽略。作者使用 2021 年 10 月的链上数据做出的预测估计，到 2022 年 6 月每个区块约增加 0.1 秒，到 2022 年 7 月约增加 0.5 秒。这足够明显，能促使人们采取行动，同时又留有余地，必要时可以再次推迟。\n\n## 示例代码\n\n分叉前后炸弹项的计算，用 Python 表示：\n\n```python\nBOMB_DELAY = 10_700_000\n\ndef ice_age_component(block_number: int, fork_block: int) -\u003e int:\n    n = max(0, block_number - BOMB_DELAY) if block_number \u003e= fork_block else block_number\n    period = n // 100_000\n    return 2 ** (period - 2) if period \u003e= 2 else 0\n\n# e.g. block 14,000,000 after the fork behaves like block 3,300,000:\nprint(ice_age_component(14_000_000, fork_block=0))  # 2**31, tiny next to mainnet difficulty\n```\n\n## 需要注意\n\n- **状态：Final。** 它是主网历史（Arrow Glacier）的一部分。\n- 仅靠这次推迟还不够。合并拖到了 2022 年 6 月之后，因此 [EIP-5133](/eip-5133/)（Gray Glacier）再次推迟了炸弹。\n- 炸弹现在已不再重要。自合并（[EIP-3675](/eip-3675/)）起，区块由权益证明产生，不再有可以被抬高的难度。\n- Security Considerations 指出，合并之前算力的下降可能使炸弹比预测更早生效。1070 万这个偏移量就是考虑到这一点而选定的。\n"}},"requiredBy":[8133]}
