---
eip: 649
label: EIP-649
title: Metropolis Difficulty Bomb Delay and Block Reward Reduction
status: Final
type: Standards Track
category: Core
created: 2017-06-21
official: https://eips.ethereum.org/EIPS/eip-649
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-649.md
canonical: https://eips.huatuo.xyz/zh/eip-649/
lang: zh
tldr: 在 Byzantium 分叉中，把工作量证明的难度炸弹推迟约 300 万个区块，并把区块奖励从 5 ETH 降到 3 ETH，以控制发行量。
tags: [difficulty-bomb, issuance, proof-of-work, core, byzantium]
---

# EIP-649: Metropolis Difficulty Bomb Delay and Block Reward Reduction

> The average block times are increasing due to the difficulty bomb (also known as the "ice age") slowly accelerating. This EIP proposes to delay the difficulty bomb for approximately one and a half year and to reduce the block rewards with the Byzantium fork, the first part of the Metropolis fork.

**TL;DR:** 在 Byzantium 分叉中，把工作量证明的难度炸弹推迟约 300 万个区块，并把区块奖励从 5 ETH 降到 3 ETH，以控制发行量。

## 它解决什么问题？

以太坊工作量证明的难度中包含一个指数式的“冰河期”项，即难度炸弹。它的用意是让挖矿越来越难，直到链不得不迁移到权益证明。到 2017 年年中，炸弹已经显现：平均出块时间在逐渐变长。权益证明还没准备好，如果不采取行动，链会慢到几乎停滞。

EIP-649 推迟了炸弹。取消减速也会提高矿工收入，因此它把推迟与降低区块奖励搭配起来，让系统大致维持原状。

## 它如何运作

**炸弹使用的虚拟区块号。** 在难度公式中，只有指数式的冰河期部分使用平移后的区块号：

```python
fake_block_number = max(0, block.number - 3_000_000) if block.number >= BYZANTIUM_FORK_BLKNUM else block.number
```

难度调整的其余部分不变。炸弹现在的表现就像链年轻了 300 万个区块。规范估计这相当于约 4,200 万秒，大约 1.4 年。

**降低奖励。** 从 Byzantium 起：

- 区块奖励：**3 ETH**，原为 5 ETH。
- 叔块奖励：`(8 - k) * 3 ETH / 8`，其中 `k` 是叔块比包含它的区块早多少个区块。
- 侄块奖励（包含叔块的奖励）：`3 ETH / 32`。

这些就是把新的基础奖励代入旧公式的结果。

## 示例代码

用伪代码计算 Byzantium 之后区块的奖励：

```python
BLOCK_REWARD = 3 * 10**18  # wei

def apply_rewards(block):
    miner_total = BLOCK_REWARD
    for uncle in block.uncles:
        k = block.number - uncle.number
        credit(uncle.coinbase, (8 - k) * BLOCK_REWARD // 8)
        miner_total += BLOCK_REWARD // 32          # nephew reward
    credit(block.coinbase, miner_total)
```

## 需要注意

- EIP-649 随 Byzantium 硬分叉（[EIP-609](/eip-609/)）在主网 4,370,000 区块生效。
- 它取代了更早的降低奖励的想法（EIP-186），后者被并入了这份提案。
- 这是多次炸弹推迟中的第一次。下一次是 Constantinople 中的 [EIP-1234](/eip-1234/)，它再次推迟炸弹，并把奖励降到 2 ETH。
- 区块奖励和难度炸弹随着 2022 年迁移到权益证明而终结，因此这些规则如今只对历史区块有意义。


---

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