EIP-7942 · Draft · Core · 2025-04-30
EIP-7942: Available Attestation
A draft consensus change that makes Ethereum proof-of-stake resistant to reorg attacks by only treating a block as stable when it carries attestations from at least one-third of the previous slot's validators, and by switching fork choice to the longest stable chain.
What problem does it solve?
Many of the known practical attacks on Ethereum's proof-of-stake are reorganization (reorg) attacks: malicious validators make honest blocks get orphaned, either by manipulating the weight of competing forks (ex-ante reorgs, balancing attacks, sandwich reorgs) or by getting honest validators to prune the canonical chain (bouncing, justification-withholding and staircase attacks).
The mitigations deployed so far, such as proposer boosting, were added one at a time. Some opened new holes (proposer boosting enabled the sandwich reorg), and many lack formal proofs or assume the attacker controls only a small share of stake. EIP-7942, based on a peer-reviewed paper by the authors, proposes a single mechanism with a security proof.
How it works
The core idea is a weak quorum: if more than one-third of validators attested to a block, at least one honest validator has seen and validated it, so the block is provably available.
- Available Attestation (AA): a block in slot
tthat received attestations from more than one-third of slott's validators is writtenAA_t. - Stable block: a block in slot
twhose parent isAA_{t-1}, and which includes those attestations as proof. Any other block is unstable.
The proposal makes four changes:
- Parent selection: a proposer builds on the latest AA block if one exists; otherwise it falls back to the fork-choice head (producing an unstable block).
- Longest Stable Chain fork choice replaces HLMD-GHOST: the head is the chain with the most stable blocks; ties go to the leaf with the highest slot. Weight-based rules are vulnerable to attestation withholding; counting stable blocks is not.
unstable_root: each block may reference the latest unstable block so its transactions are not lost; they finalize when the referencing block finalizes.- Simpler filtering and justification: only chains that justify the latest justified checkpoint are considered, and the mid-epoch "unrealized" justification logic is removed. Justification updates only at epoch boundaries.
Casper FFG, the finality gadget, is unchanged, so safety is preserved. The authors argue liveness holds after the network becomes synchronous, and that reorgs are prevented under synchrony.
Sample code
The fork-choice change, as given in the spec's pseudocode:
@dataclass
class Chain(object):
leaf: Root
length: uint64 # number of stable blocks
justified_checkpoint: Checkpoint
def get_filtered_block_tree(store: Store) -> List[Chain]:
# Only chains that justify the latest justified checkpoint are viable
return [c for c in store.chains
if c.justified_checkpoint.root == store.justified_checkpoint.root]
def get_head(store: Store) -> Root:
chains = get_filtered_block_tree(store)
return max(chains, key=lambda c: c.length).leaf # longest stable chain
Proposer-side parent selection, paraphrased:
def choose_parent(store, slot):
aa = latest_block_with_one_third_attestations(store, slot - 1)
if aa is not None:
return aa.root # new block will be stable
return get_head(store) # new block will be unstable
Things to know
- Status: Draft. It is not scheduled for any network upgrade.
- It changes fork choice, validator duties and the block format, so it would require a hard fork and changes in every consensus client.
- Committees are sampled randomly, so the one-third threshold per committee only holds with high probability. The spec gives a formula for the per-committee threshold given a target failure probability and argues that with a validator set as large as Ethereum's, one-third of the committee size is an adequate threshold.
- The reorg-resilience claim applies to synchronous networks; under partial synchrony the claim is standard safety and liveness. Formal proofs are in the authors' companion paper.