mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
State sync is skipped when the chain is not far enough ahead of local state, because bootstrapping would be faster. That trade only exists while bootstrapping can run at all. It replays blocks against the state beneath them, so a node missing the state at its own head cannot replay a single block — it fails to materialize the next one and stops there, whatever the gap is. On such a node the threshold declines the one mechanism that could repair it, and small-gap corruption becomes permanent: it cannot execute forward, and it is not far enough behind to be allowed to sync. The threshold now applies only when the node holds the state its head is built on. A chain that cannot be read answers no — the cost of being wrong that way is a sync that was not strictly needed, against a node that could otherwise never come back. Co-authored-by: Hanzo Dev <[email protected]>