Files
evm/plugin
zeekayandHanzo Dev 4f05ea3bde sync: the min-gap threshold is for nodes that have a choice
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]>
2026-08-16 00:31:24 -07:00
..
2026-05-20 16:24:51 -07:00
2026-05-20 16:24:51 -07:00