---
eip: 1276
label: EIP-1276
title: Eliminate Difficulty Bomb and Adjust Block Reward on Constantinople Shift
status: Stagnant
type: Standards Track
category: Core
created: 2018-07-31
official: https://eips.ethereum.org/EIPS/eip-1276
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1276.md
canonical: https://eips.huatuo.xyz/zh/eip-1276/
lang: zh
tldr: 君士坦丁堡时期的一项提案：永久删除工作量证明的难度炸弹，并把区块奖励降到 2 ETH，而不是再次推迟炸弹。
tags: [difficulty-bomb, block-reward, proof-of-work, core, constantinople]
---

# EIP-1276: Eliminate Difficulty Bomb and Adjust Block Reward on Constantinople Shift

> The average block times are increasing due to the factor of difficulty logic well known as difficulty bomb. This EIP proposes to eliminate the difficulty bomb forever and to reduce the block rewards with the Constantinople fork, the second part of the Metropolis fork.

**TL;DR:** 君士坦丁堡时期的一项提案：永久删除工作量证明的难度炸弹，并把区块奖励降到 2 ETH，而不是再次推迟炸弹。

## 它解决什么问题？

以太坊工作量证明的难度公式中包含一个指数型的“难度炸弹”项，每 100,000 个区块增长一次。它本意是推动网络转向权益证明，但由于这一转变不断推迟，出块时间开始上升，炸弹只能通过硬分叉来推迟。

ERC-1276 认为反复推迟炸弹是错误的解决办法。它提议在君士坦丁堡分叉中彻底移除炸弹，同时降低区块奖励，以减少增发，并削弱对越来越多挖矿算力的激励。

## 它如何运作

从分叉区块（`CNSTNTNPL_FORK_BLKNUM`）起：

- **难度**：从 `calc_difficulty` 中去掉指数项 `int(2**((block.number // 100000) - 2))`。此后难度只取决于通常基于父区块的调整，而不取决于区块号。
- **区块奖励**：2 ETH。
- **叔块奖励**：公式不变，按新的基础奖励重新缩放。
- **侄块奖励**：打包者每包含一个叔块的奖励，同样重新缩放。

## 示例代码

分叉后的奖励规则，按规范写成的伪代码：

```python
NEW_BLOCK_REWARD = 2 * 10**18  # 2 ETH in wei

def block_reward(block):
    return NEW_BLOCK_REWARD if block.number >= CNSTNTNPL_FORK_BLKNUM else block.reward

def uncle_reward(block, uncle):
    k = block.number - uncle.number          # 1..6
    return (8 - k) * NEW_BLOCK_REWARD // 8

def nephew_reward():
    return NEW_BLOCK_REWARD // 32            # per included uncle

# Difficulty: same as before, minus the bomb term
# epsilon = int(2 ** ((block.number // 100000) - 2))   <- removed
```

## 需要注意

- 状态：**Stagnant**。它没有被采纳。
- 规范本身指出，它与君士坦丁堡实际采用的 [EIP-1234](/eip-1234/) 直接对立：后者同样把奖励设为 2 ETH，但是*推迟*了炸弹而不是移除它。
- 这项改动不向后兼容：它同时改变了难度计算和奖励安排，因此只能随计划好的硬分叉发布。从未编写过测试用例或实现。
- [EIP-649](/eip-649/)（拜占庭）此前已经确立了同时推迟炸弹和降低奖励的模式。
- 自合并（The Merge）以来，以太坊不再使用工作量证明，因此区块奖励和难度炸弹不再适用于主网。


---

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