EIP-7569 · Final · Meta · 2023-12-01
EIP-7569: Hardfork Meta - Dencun
The meta EIP listing everything shipped in Dencun (Deneb + Cancun), the March 2024 upgrade that introduced blobs for cheap rollup data plus transient storage, MCOPY and other EVM changes.
What problem does it solve?
An Ethereum network upgrade bundles many separate EIPs and changes both the execution layer (the EVM, transactions) and the consensus layer (the beacon chain). A hardfork meta EIP is the single index for one upgrade: which EIPs are in it, where the full specs live, and when it activated on each network.
Dencun is the combined name for the consensus-layer fork Deneb and the execution-layer fork Cancun. Its headline feature was blob transactions, which made posting rollup data far cheaper.
How it works
Included EIPs:
| EIP | What it does | Layer |
|---|---|---|
| EIP-1153 | Transient storage: TSTORE/TLOAD, cleared after each transaction |
EL |
| EIP-4788 | Beacon block root available inside the EVM | EL + CL |
| EIP-4844 | Shard blob transactions (type 0x03) with their own blob fee market |
EL + CL |
| EIP-5656 | MCOPY memory-copy opcode |
EL |
| EIP-6780 | SELFDESTRUCT only deletes a contract created in the same transaction |
EL |
| EIP-7044 | Signed voluntary exits stay valid permanently | CL |
| EIP-7045 | Longer window for including attestations | CL |
| EIP-7514 | Caps validator activations per epoch | CL |
| EIP-7516 | BLOBBASEFEE opcode |
EL |
Consensus-layer changes are specified in the deneb folder of ethereum/consensus-specs; execution-layer changes are fully defined in the EIPs themselves.
Activation, as recorded in the spec:
| Network | Epoch | Timestamp |
|---|---|---|
| Goerli | 231680 | 1705473120 |
| Sepolia | 132608 | 1706655072 |
| Holešky | 29696 | 1707305664 |
| Mainnet | 269568 | 1710338135 (13 March 2024) |
Sample code
Checking whether a node is past Dencun by looking for blob fields in the latest block (ethers v6):
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 });
A Solidity contract can only use the new opcodes when compiled for the cancun EVM version:
{ "settings": { "evmVersion": "cancun" } }
Things to know
- Status: Final. This is a Meta EIP: it adds no rules of its own, it only lists the EIPs that do.
- The preceding upgrade lists are collected in EIP-7568; the next upgrade, Pectra, is EIP-7600.
SELFDESTRUCTpatterns that relied on deleting and redeploying a contract at the same address stopped working after EIP-6780.- Goerli has since been deprecated; it appears in the table only because Dencun ran on it.