---
eip: 4444
label: EIP-4444
title: Bound Historical Data in Execution Clients
status: Draft
type: Standards Track
category: Networking
created: 2021-11-02
official: https://eips.ethereum.org/EIPS/eip-4444
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4444.md
canonical: https://eips.huatuo.xyz/eip-4444/
lang: en
tldr: Lets execution clients stop serving, and optionally delete, block headers, bodies and receipts older than about a year (14,299 epochs), cutting node disk requirements while history moves to out-of-band archives.
tags: [history, pruning, networking, nodes, storage]
---

# EIP-4444: Bound Historical Data in Execution Clients

> Prune history older than the consensus-layer block retention window

**TL;DR:** Lets execution clients stop serving, and optionally delete, block headers, bodies and receipts older than about a year (14,299 epochs), cutting node disk requirements while history moves to out-of-band archives.

## What problem does it solve?

Every Ethereum full node stores the chain's entire history: every block header, body and receipt since genesis. When the EIP was written this already took more than 400 GB, pushing node operators toward 1 TB disks, and it only grows.

That history is not needed to validate new blocks. Once a node is synced, old data is used only to answer JSON-RPC queries or to help other peers sync from genesis. Keeping it everywhere raises hardware costs, and forces clients to maintain code for every historical fork rule just to re-process old blocks.

## How it works

The EIP defines one parameter:

| Parameter | Value | Meaning |
| --- | --- | --- |
| `HISTORY_PRUNE_EPOCHS` | 14299 | The consensus layer's block retention window |

- Clients **SHOULD NOT** serve headers, block bodies or receipts older than `HISTORY_PRUNE_EPOCHS` over the p2p network.
- Clients **MAY** delete that data locally.
- New nodes can no longer full-sync from genesis over devp2p. They must start from a valid **weak subjectivity checkpoint**, treating it as their genesis ("checkpoint sync").

The window matches the consensus layer's retention period so that consensus clients, which may rely on their paired execution client for payloads, can still serve complete beacon blocks for as long as the CL network requires.

The authors suggest a two-phase rollout: first an opt-in pruning flag, later pruning by default. Historical data should be preserved out-of-band, e.g. via torrents, IPFS, the Portal Network or indexing services, and clients should support importing and exporting it.

## Sample code

Pseudocode for the age check a client would apply before serving or keeping a block:

```python
SLOTS_PER_EPOCH = 32
HISTORY_PRUNE_EPOCHS = 14299

def is_expired(block_slot: int, current_slot: int) -> bool:
    block_epoch = block_slot // SLOTS_PER_EPOCH
    current_epoch = current_slot // SLOTS_PER_EPOCH
    return current_epoch - block_epoch > HISTORY_PRUNE_EPOCHS

def handle_get_block_bodies(request):
    for h in request.hashes:
        blk = db.get(h)
        if blk is None or is_expired(blk.slot, chain.head_slot):
            continue          # SHOULD NOT serve old history over p2p
        yield blk.body
```

What an app may see from a pruned node:

```ts
// ethers v6: older blocks or logs may simply come back empty
const block = await provider.getBlock(someOldBlockNumber); // may be null
const logs = await provider.getLogs({ fromBlock: 0, toBlock: "latest", address });
// results can be incomplete on a node that has pruned history
```

## Things to know

- Status is **Draft**: the specification may still change.
- [EIP-7639](/eip-7639/) is a related, narrower networking proposal to stop serving pre-Proof-of-Stake history.
- Applications that read old blocks, transactions or logs (explorers, indexers, tax tools) need an archive node or an external history provider. The EIP leaves JSON-RPC behavior for missing data out of scope: `getBlockByHash` cannot tell an invalid hash from a pruned one, and `getLogs` may return incomplete results.
- Security relies on the weak subjectivity assumption: bootstrapping from an invalid or stale checkpoint is unsafe.
- If the consensus layer changes its retention window, `HISTORY_PRUNE_EPOCHS` must change with it.
- The authors flag centralization risk: if few parties keep history, apps may depend on centralized providers. Blob data from [EIP-4844](/eip-4844/) is pruned separately by consensus clients and is not covered here.
- The spec insists it be pronounced "EIP four fours".


---

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