EIP-7639 · Stagnant · Networking · 2024-02-13
EIP-7639: eth/70 - Cease serving history before PoS
A stalled proposal for an eth/70 protocol version in which execution clients stop requesting and serving pre-merge block bodies and receipts over p2p, a first step toward dropping old history.
What problem does it solve?
Execution clients store every block since genesis. The spec puts this at around 500 GB as of 2024, with nearly 400 GB of it from before the merge (the Paris upgrade). Ethereum's long-term plan (EIP-4444) is to bound how much history a node must keep. But as long as the p2p protocol expects peers to serve all history, nodes cannot safely drop it.
EIP-7639 proposed the first concrete step: stop exchanging pre-merge block data on the eth p2p protocol.
How it works
- A new
ethcapability, version70. - Peers on this version must not make or answer queries for block bodies or receipts before block 15537393, the mainnet merge boundary used by the spec.
- Affected messages:
GetBlockBodies (0x05)/BlockBodies (0x06)GetReceipts (0x0f)/Receipts (0x10)
Why draw the line at the merge? The block structure changed substantially there, and since then the beacon chain defines the canonical chain. Beacon blocks can record history for both the execution and consensus layers, so pre-merge data is the natural first candidate for removal.
Sample code
How a client implementing this rule might handle requests (pseudocode):
MERGE_BLOCK = 15537393
def handle_get_block_bodies(peer, hashes):
bodies = []
for h in hashes:
header = chain.get_header(h)
if header is None or (peer.version >= 70 and header.number < MERGE_BLOCK):
continue # pre-merge data is not served
bodies.append(chain.get_body(h))
peer.send("BlockBodies", bodies)
Things to know
- Status is Stagnant. It was not adopted as eth/70.
- The goal was later reached by other means: EIP-7642 (eth/69) lets nodes advertise which block range they serve, so peers can drop pre-merge history without a protocol version that forbids it. The eth/70 number is now used by EIP-7975.
- Under this proposal, nodes could no longer full-sync from genesis over devp2p. They would need to fetch pre-merge history out-of-band, for example from archives.
- The spec's Security Considerations section was left as "TODO".
- EIP-7542 was an earlier, now withdrawn, eth/70 proposal for advertising block ranges.