Update log message for history indexer recovery

This commit is contained in:
rjl493456442 2025-09-07 21:36:05 +08:00 committed by GitHub
parent 8a229c8d48
commit cb669c1e32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,12 +328,12 @@ func newIndexIniter(disk ethdb.KeyValueStore, freezer ethdb.AncientStore, lastID
if metadata != nil {
initer.indexed.Store(metadata.Last)
recover = metadata.Last > lastID
log.Info("State history indexer is recovering", "history", lastID, "index", metadata.Last)
}
// Launch background indexer
initer.wg.Add(1)
if recover {
log.Info("History indexer is recovering", "history", lastID, "indexed", metadata.Last)
go initer.recover(lastID)
} else {
go initer.run(lastID)