EIPs Explained

EIP-8252 · Draft · Informational · 2026-04-24

EIP-8252: Execution-Layer Reorg State Retention Window

Requires execution clients to keep enough recent state to re-execute any reorg within 262,144 blocks (about 36 days), the worst-case non-finality window bounded by the inactivity leak.

What problem does it solve?

When a consensus client tells its execution client (EL) to switch to a different branch, the EL has to execute the new branch starting from the state of the common ancestor. If the EL has already pruned that state, it cannot validate the branch locally and has to resync.

How far back that ancestor can be is bounded: it cannot be older than the last finalized block. But nothing in the protocol says how much recent state an EL must keep. Long-term history retention (headers, bodies, receipts) is covered by history-expiry rules; state pruning is left entirely to each client. During a long finality outage, an aggressive pruner could end up unable to follow a deep but legitimate reorg.

How it works

The proposal defines one constant:

REORG_RETENTION_WINDOW = 262_144 blocks   # 8192 epochs x 32 slots, ~36.4 days

For every canonical block n with head - REORG_RETENTION_WINDOW <= n <= head, the EL must be able to reconstruct that block's post-state without syncing. How it does so is up to the client: full snapshots, reverse state diffs or anything equivalent, in memory or on disk. State older than the window may be discarded.

Why that number? Finality stalls when more than a third of stake is offline. The inactivity leak then drains offline validators until online stake regains a two-thirds supermajority. The spec works through the math: the more stake is offline at the start, the longer recovery takes (around 21 days at 50 % offline, around 30 days at two-thirds). 8192 epochs covers leak-driven non-finality up to roughly 79 % initial offline stake. Stating it in blocks (2^18) gives ELs a value that does not depend on reading beacon state.

The window is about state only. To re-execute a reorg, the node needs state at the ancestor; the new branch's blocks arrive over the engine API or P2P, so it does not need the displaced branch's block data.

Sample code

Illustrative pruning check an EL could apply:

REORG_RETENTION_WINDOW = 262_144  # blocks

def may_prune_state(block_number: int, head_number: int) -> bool:
    """True if this block's post-state no longer needs to be reconstructible."""
    return block_number < head_number - REORG_RETENTION_WINDOW

def must_reconstruct(block_number: int, head_number: int) -> bool:
    return head_number - REORG_RETENTION_WINDOW <= block_number <= head_number

Things to know

  • Status: Draft (Informational). It sets a client requirement rather than changing consensus rules, so it needs no hard fork.
  • Clients that prune state more aggressively than the window would need to keep extra data, typically reverse diffs.
  • Reorgs deeper than the window are out of scope; recovering from one may need a fresh sync from a trusted checkpoint. Older state remains the job of archive nodes.
  • Block, body and receipt retention are not covered here; see history expiry in EIP-4444.

#state #reorg #finality #clients #informational

Details

Authors
Toni Wahrstätter (@nerolation), Kevaundray Wedderburn (@kevaundray), Jacek Sieka (@arnetheduck)
Status
Draft
Type
Informational
Created
2026-04-24

Machine-readable: Markdown · JSON