From 7a45fc2ab153d07f1b9ecab1ec0b048755fee065 Mon Sep 17 00:00:00 2001 From: jonny rhea <5555162+jrhea@users.noreply.github.com> Date: Thu, 9 Jul 2026 11:50:08 -0500 Subject: [PATCH] eth/protocols/snap: comment clarification --- eth/protocols/snap/syncv2.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/protocols/snap/syncv2.go b/eth/protocols/snap/syncv2.go index 0af7464285..4c7622858b 100644 --- a/eth/protocols/snap/syncv2.go +++ b/eth/protocols/snap/syncv2.go @@ -564,6 +564,9 @@ func (s *syncerV2) Sync(target *types.Header, cancel chan struct{}) error { // If the pivot of a completed sync was already committed, full sync has // been mutating the flat state since. Nothing here can be resumed or // rolled forward, snap sync was re-enabled, so wipe and start fresh. + // newSyncerV2 already drops such a journal on load, so this branch only + // fires for an in-process re-enable, where the syncer was built before + // the sync completed so the load-time check never saw a committed journal. // Same-pivot retries return through the skip above on purpose, a cycle // that dies right after the commit just needs to recommit. if prevPivot != nil && s.getPhase() == phaseComplete && isPivotCommitted(s.db, prevPivot) {