Skip to content

Commit f0071e7

Browse files
Evolution404atif-konasl
authored andcommitted
consensus/ethash: replace a magic number with it's constant (ethereum#22618)
1 parent 07e7795 commit f0071e7

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)