---
eip: 7569
label: EIP-7569
title: Hardfork Meta - Dencun
status: Final
type: Meta
created: 2023-12-01
requires: 1153, 4788, 4844, 5656, 6780, 7044, 7045, 7514, 7516, 7568
official: https://eips.ethereum.org/EIPS/eip-7569
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7569.md
canonical: https://eips.huatuo.xyz/zh/eip-7569/
lang: zh
tldr: 列出 Dencun（Deneb + Cancun）中所有内容的元 EIP。这是 2024 年 3 月的升级，引入了用于廉价 rollup 数据的 blob，以及瞬时存储、MCOPY 和其他 EVM 变更。
tags: [hardfork, meta, dencun, upgrade, blobs]
---

# EIP-7569: Hardfork Meta - Dencun

> EIPs included in the Deneb/Cancun Ethereum network upgrade.

**TL;DR:** 列出 Dencun（Deneb + Cancun）中所有内容的元 EIP。这是 2024 年 3 月的升级，引入了用于廉价 rollup 数据的 blob，以及瞬时存储、MCOPY 和其他 EVM 变更。

## 它解决什么问题？

以太坊网络升级会打包许多独立的 EIP，并同时改变执行层（EVM、交易）和共识层（信标链）。硬分叉元 EIP 是某次升级的唯一索引：其中包含哪些 EIP、完整规范在哪里，以及它在各个网络上何时激活。

**Dencun** 是共识层分叉 **Deneb** 与执行层分叉 **Cancun** 的合称。它的核心特性是 blob 交易，使发布 rollup 数据便宜得多。

## 它如何运作

包含的 EIP：

| EIP | 作用 | 层 |
| --- | --- | --- |
| [EIP-1153](/eip-1153/) | 瞬时存储：`TSTORE`/`TLOAD`，每笔交易结束后清除 | EL |
| [EIP-4788](/eip-4788/) | 在 EVM 内可获取信标区块根 | EL + CL |
| [EIP-4844](/eip-4844/) | 分片 blob 交易（类型 `0x03`），带有独立的 blob 费用市场 | EL + CL |
| [EIP-5656](/eip-5656/) | `MCOPY` 内存复制 opcode | EL |
| [EIP-6780](/eip-6780/) | `SELFDESTRUCT` 只删除在同一笔交易中创建的合约 | EL |
| [EIP-7044](/eip-7044/) | 已签名的自愿退出永久有效 | CL |
| [EIP-7045](/eip-7045/) | 延长可纳入证明（attestation）的窗口 | CL |
| [EIP-7514](/eip-7514/) | 限制每个 epoch 的验证者激活数量 | CL |
| [EIP-7516](/eip-7516/) | `BLOBBASEFEE` opcode | EL |

共识层的变更在 `ethereum/consensus-specs` 的 `deneb` 文件夹中规定；执行层的变更完全由各 EIP 本身定义。

规范中记录的激活情况：

| 网络 | Epoch | 时间戳 |
| --- | --- | --- |
| Goerli | 231680 | 1705473120 |
| Sepolia | 132608 | 1706655072 |
| Holešky | 29696 | 1707305664 |
| Mainnet | 269568 | 1710338135（2024 年 3 月 13 日） |

## 示例代码

通过查看最新区块中是否有 blob 字段，检查节点是否已过 Dencun（ethers v6）：

```ts
import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);
const block = await provider.send("eth_getBlockByNumber", ["latest", false]);

// Fields added by EIP-4844 and EIP-4788 to the execution block header
const isDencun = block.blobGasUsed !== undefined
  && block.excessBlobGas !== undefined
  && block.parentBeaconBlockRoot !== undefined;
console.log({ isDencun, blobGasUsed: block.blobGasUsed });
```

Solidity 合约只有在以 `cancun` EVM 版本编译时才能使用新的 opcode：

```json
{ "settings": { "evmVersion": "cancun" } }
```

## 需要注意

- 状态：**Final**。这是一个元 EIP：它本身不增加任何规则，只列出增加规则的那些 EIP。
- 之前各次升级的列表汇总在 [EIP-7568](/eip-7568/) 中；下一次升级 Pectra 是 [EIP-7600](/eip-7600/)。
- 依赖在同一地址删除并重新部署合约的 `SELFDESTRUCT` 模式，在 [EIP-6780](/eip-6780/) 之后不再有效。
- Goerli 此后已被弃用；它出现在表中只是因为 Dencun 曾在其上运行。


---

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