core/rawdb: tiny fixup

This commit is contained in:
Péter Szilágyi 2020-05-12 11:44:48 +03:00 committed by GitHub
parent 92c6c6fe0c
commit 90f52b5d10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -293,7 +293,7 @@ func UnindexTransactions(db ethdb.Database, from uint64, to uint64) {
}
// 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("Unindexing transactions", "blocks", blocks, "txs", txs, "offset", int64(math.Abs(float64(delivery.number-from))), "total", to-from, "elapsed", common.PrettyDuration(time.Since(start)))
log.Info("Unindexing transactions", "blocks", blocks, "txs", txs, "total", to-from, "elapsed", common.PrettyDuration(time.Since(start)))
logged = time.Now()
}
}