---
eip: 2384
label: EIP-2384
title: Muir Glacier Difficulty Bomb Delay
status: Final
type: Standards Track
category: Core
created: 2019-11-20
official: https://eips.ethereum.org/EIPS/eip-2384
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2384.md
canonical: https://eips.huatuo.xyz/zh/eip-2384/
lang: zh
tldr: 在 Muir Glacier 升级中把以太坊工作量证明的难度炸弹推迟了 4,000,000 个区块，阻止出块时间逐渐拉长到 20–30 秒。
tags: [difficulty-bomb, ice-age, core, proof-of-work, muir-glacier]
---

# EIP-2384: Muir Glacier Difficulty Bomb Delay

> The average block times are increasing due to the difficulty bomb (also known as the "ice age") and slowly accelerating. This EIP proposes to delay the difficulty bomb for another 4,000,000 blocks (~611 days).

**TL;DR:** 在 Muir Glacier 升级中把以太坊工作量证明的难度炸弹推迟了 4,000,000 个区块，阻止出块时间逐渐拉长到 20–30 秒。

## 它解决什么问题？

工作量证明时代的以太坊有一个"难度炸弹"（也叫*冰河期*，ice age）：难度公式中的一项附加项，随区块号呈指数增长。它的目的是让挖矿逐渐变慢，迫使网络升级，而不是停留在旧规则上。

到 2019 年底，炸弹的影响再次变得明显。规范指出，出块时间从区块 8,600,000 附近的约 13.1 秒上升到区块 8,900,000 时的约 14.3 秒，并预测到 2019 年 12 月底将达到 20 秒，到 2020 年 2 月将超过 30 秒。出块变慢意味着吞吐量降低、用户体验变差。由于向权益证明的过渡尚未就绪，炸弹必须再次推迟。

## 它如何运作

修复方法与之前的几次推迟相同（Byzantium 中的 [EIP-649](/eip-649/) 和 Constantinople 中的 [EIP-1234](/eip-1234/)）：在计算难度中的冰河期部分时，客户端使用一个比真实区块号更小的**假区块号**。

从分叉区块开始，假区块号等于真实区块号减去 9,000,000。相对于上一次推迟，这增加了 4,000,000 个区块，按当时的出块速度大约相当于 611 天。难度计算的其余部分不变，只有指数炸弹项使用平移后的区块号。

Muir Glacier 是继 Istanbul 之后只包含单个 EIP 的硬分叉。规范强调，这 4,000,000 个区块是从大约区块 8,800,000 开始计算的，而不是从激活区块开始。

## 示例代码

规范中的规则，用 Python 风格的伪代码表示：

```python
def ice_age_block_number(block_number: int, fork_block: int) -> int:
    # Used only for the exponential "bomb" term of calc_difficulty
    if block_number >= fork_block:
        return max(0, block_number - 9_000_000)
    return block_number

# The bomb term in Ethereum's PoW difficulty formula
def bomb(block_number: int, fork_block: int) -> int:
    fake = ice_age_block_number(block_number, fork_block)
    period = fake // 100_000
    return 2 ** (period - 2) if period >= 2 else 0
```

## 需要注意

- 状态为 **Final**；它以 Muir Glacier 升级的形式上线。
- 规范预计炸弹会在 2021 年 7 月前后让出块时间重新回到约 20 秒。后来它又被 [EIP-3554](/eip-3554/)（London）、[EIP-4345](/eip-4345/)（Arrow Glacier）和 [EIP-5133](/eip-5133/)（Gray Glacier）再次推迟。
- 合并（The Merge）之后，以太坊不再使用工作量证明难度，因此炸弹对如今的链没有影响。这份 EIP 主要对历史同步和理解过去的分叉规则有意义。


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-2384
