Skip to content

Commit

Permalink
core/state/snapshot: add generation logs to storage too
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jan 15, 2021
1 parent d13c59f commit c4deebb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/state/snapshot/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c4deebb

Please sign in to comment.