Skip to content

Commit e275b1a

Browse files
authored
consensus/ethash: replace a magic number with it's constant (ethereum#22618)
1 parent 95219ae commit e275b1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consensus/ethash/algorithm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func generateCache(dest []uint32, epoch uint64, seed []byte) {
174174
case <-done:
175175
return
176176
case <-time.After(3 * time.Second):
177-
logger.Info("Generating ethash verification cache", "percentage", atomic.LoadUint32(&progress)*100/uint32(rows)/4, "elapsed", common.PrettyDuration(time.Since(start)))
177+
logger.Info("Generating ethash verification cache", "percentage", atomic.LoadUint32(&progress)*100/uint32(rows)/(cacheRounds+1), "elapsed", common.PrettyDuration(time.Since(start)))
178178
}
179179
}
180180
}()

0 commit comments

Comments
 (0)