Skip to content

Commit c4deebb

Browse files
committed
core/state/snapshot: add generation logs to storage too
1 parent d13c59f commit c4deebb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/state/snapshot/generate.go

+4
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ func (dl *diskLayer) generate(stats *generatorStats) {
281281
abort <- stats
282282
return
283283
}
284+
if time.Since(logged) > 8*time.Second {
285+
stats.Log("Generating state snapshot", dl.root, append(accountHash[:], storeIt.Key...))
286+
logged = time.Now()
287+
}
284288
}
285289
}
286290
if err := storeIt.Err; err != nil {

0 commit comments

Comments
 (0)