go-ethereum/eth/protocols
rjl493456442 7122ecc3eb
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run
eth/protocols/snap: remove uncovered states before resuming (#35159)
This PR fixes an issue where flat states are continuously persisted
during downloadState, while the sync journal is only persisted at the
end of Sync.

As a result, an unclean shutdown can leave the on-disk flat state ahead
of the journal markers. Some persisted entries may be stale (storage
slots that should have been deleted), and these dangling entries are not
detected or fixed by subsequent state downloads.

To address this, this PR introduces a cleanup step before state
downloading begins. It removes all state entries that are not covered by
the persisted journal markers.
2026-06-17 13:44:12 +08:00
..
eth eth/protocols/eth: track announced tx hashes only after send (#35122) 2026-06-08 16:02:20 -04:00
snap eth/protocols/snap: remove uncovered states before resuming (#35159) 2026-06-17 13:44:12 +08:00