Update core/rawdb/chain_iterator.go

Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
This commit is contained in:
Jason-W123 2026-05-08 01:08:27 +08:00 committed by GitHub
parent 104d732441
commit d1e27caf7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -340,7 +340,7 @@ func unindexTransactions(db ethdb.Database, from uint64, to uint64, interrupt ch
// If we've spent too much time already, notify the user of what we're doing // If we've spent too much time already, notify the user of what we're doing
if time.Since(logged) > 8*time.Second { if time.Since(logged) > 8*time.Second {
if !loggedFirstBanner { if !loggedFirstBanner {
log.Info("Unindexing transactions — this is normal maintenance and does not indicate data loss", "blocks", blocks, "txs", txs, "total", to-from, "elapsed", common.PrettyDuration(time.Since(start))) log.Info("Removing old transaction ids from transaction lookup index", "blocks", blocks, "txs", txs, "total", to-from, "elapsed", common.PrettyDuration(time.Since(start)))
loggedFirstBanner = true loggedFirstBanner = true
} else { } else {
log.Debug("Unindexing transactions", "blocks", blocks, "txs", txs, "total", to-from, "elapsed", common.PrettyDuration(time.Since(start))) log.Debug("Unindexing transactions", "blocks", blocks, "txs", txs, "total", to-from, "elapsed", common.PrettyDuration(time.Since(start)))