Merge pull request #22177 from karalabe/snapshot-storage-logs

core/state/snapshot: add generation logs to storage too
This commit is contained in:
Péter Szilágyi 2021-01-15 12:54:34 +02:00 committed by GitHub
commit 3944976a9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -281,6 +281,10 @@ func (dl *diskLayer) generate(stats *generatorStats) {
abort <- stats
return
}
if time.Since(logged) > 8*time.Second {
stats.Log("Generating state snapshot", dl.root, append(accountHash[:], storeIt.Key...))
logged = time.Now()
}
}
}
if err := storeIt.Err; err != nil {