Skip to content

Commit

Permalink
fix:continue snap sync error
Browse files Browse the repository at this point in the history
  • Loading branch information
lochjin committed Dec 23, 2024
1 parent ab1e957 commit 6d5bfb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/synch/snapsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ cleanup:
bestPeer.UpdateSyncPoint(sp.GetHash())
log.Debug("Snap-sync update sync point", "point", sp.GetHash().String())
}
ps.snapStatus.SetTarget(sp.GetHash(), sp.GetState().Root())
if ps.snapStatus.IsCompleted() {
log.Info("Snap-sync has ended", "spend", time.Since(startTime).Truncate(time.Second).String(), "processID", ps.getProcessID())
ps.snapStatus = nil
Expand Down

0 comments on commit 6d5bfb8

Please sign in to comment.