mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
core/rawdb: fix off-by-one in freezer init progress log
After advancing i past the last processed block, the progress log reported i alongside the last hash. Log i-1 so the number matches the hash being printed.
This commit is contained in:
parent
3ab52d837d
commit
6907858d9d
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ func InitDatabaseFromFreezer(db ethdb.Database) {
|
|||
i += uint64(len(data))
|
||||
// If we've spent too much time already, notify the user of what we're doing
|
||||
if time.Since(logged) > 8*time.Second {
|
||||
log.Info("Initializing database from freezer", "total", frozen, "number", i, "hash", hash, "elapsed", common.PrettyDuration(time.Since(start)))
|
||||
log.Info("Initializing database from freezer", "total", frozen, "number", i-1, "hash", hash, "elapsed", common.PrettyDuration(time.Since(start)))
|
||||
logged = time.Now()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue