We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 741f983 commit e539ecbCopy full SHA for e539ecb
eth/protocols/snap/sync.go
@@ -3111,6 +3111,10 @@ func (s *Syncer) reportSyncProgress(force bool) {
3111
if estBytes < 1.0 {
3112
return
3113
}
3114
+ // Cap the estimated state size using the synced size to avoid negative values
3115
+ if estBytes < float64(synced) {
3116
+ estBytes = float64(synced)
3117
+ }
3118
elapsed := time.Since(s.startTime)
3119
estTime := elapsed / time.Duration(synced) * time.Duration(estBytes)
3120
0 commit comments