EIP-8379 · Draft · Core · 2026-08-06
EIP-8379: Top-up Sync
Adds engine_getSyncStatus and a MISSING_STATE payload status to the Engine API so the consensus client can feed blocks to its execution client one by one ('top-up sync'), a step toward retiring block download over devp2p.
What problem does it solve?
Since the Merge (EIP-3675), a node runs two clients. Both fetch the same blocks independently: the consensus client (CL) over its gossip and req/resp network, the execution client (EL) over devp2p. That duplicates networking work.
The CL could simply hand blocks to the EL through the Engine API, but two pieces are missing:
- The CL cannot ask the EL where its chain ends, so it does not know which block to send next.
- When
engine_newPayloadreturnsSYNCING, the CL cannot tell whether the EL lacks the parent blocks (the CL should send them) or lacks the state because it is still snap-syncing (sending parents would be useless).
How it works
engine_getSyncStatus (no params) returns two heads:
| Field | Meaning |
|---|---|
headBlockHash / headBlockNumber |
Latest block of the EL's contiguous canonical chain of held blocks |
executedBlockHash / executedBlockNumber |
Latest canonical block the EL has executed and holds post-state for (null before initial state sync) |
The EL guarantees that a payload whose parent is the reported block head is never answered with SYNCING, and that the status only changes after a newPayload or forkchoiceUpdated call.
MISSING_STATE is a new payload status: all ancestors are known but the block was not executed because the pre-state is unavailable. The EL stores the block and advances its block head; the executed head catches up later, by executing stored blocks or by fast-forwarding state (snap sync, or EIP-7928 block access lists). SYNCING now strictly means missing ancestor blocks.
Top-up loop run by the CL: query status; if the EL head is behind, send the CL's canonical block at headBlockNumber + 1; if the parent hash differs, find the fork point and re-send from there; if the needed block is older than the CL keeps, let the EL snap-sync first. The new engine_newPayload version accepts payloads from earlier forks so one top-up can cross fork boundaries.
Sample code
The CL-side loop, as TypeScript-flavoured pseudocode:
async function topUp(el: EngineApi, cl: BeaconChain) {
for (;;) {
const s = await el.call("engine_getSyncStatus", []);
if (s.headBlockHash === cl.canonicalExecutionHead().hash) return; // delivered
const next = cl.canonicalPayloadAt(BigInt(s.headBlockNumber) + 1n);
if (!next) { await cl.waitForEl(); continue; } // too old: EL must snap-sync
if (next.parentHash !== s.headBlockHash) { // EL is on an abandoned fork
await redeliverFromForkPoint(el, cl, s);
continue;
}
const r = await el.call("engine_newPayloadVN", [next /* , fork-specific params */]);
// r.status is VALID, INVALID or MISSING_STATE, never SYNCING here
if (r.status === "INVALID") cl.markInvalid(next);
}
}
Things to know
- Status is Draft. Open questions include how much
MISSING_STATEdata the EL must buffer and what rules apply to multiplexers serving several CLs. - A
MISSING_STATEpayload is not validated; the CL must keep treating it as optimistic until the executed head passes it. - CLs that do not implement top-up can treat
MISSING_STATEexactly likeSYNCING; older method versions are unchanged. - The longer-term aim is to deprecate devp2p block-distribution messages (
GetBlockHeaders,GetBlockBodies); snap sync and the mempool stay on devp2p. Batched delivery is left to future EIPs.