triedb/pathdb: fix comments

This commit is contained in:
Gary Rong 2025-06-19 18:50:51 +08:00
parent 5b80a7af38
commit 41f85203a7

View file

@ -301,9 +301,8 @@ func (db *Database) Journal(root common.Hash) error {
} else { // disk layer only on noop runs (likely) or deep reorgs (unlikely) } else { // disk layer only on noop runs (likely) or deep reorgs (unlikely)
log.Info("Persisting dirty state to disk", "root", root, "layers", disk.buffer.layers) log.Info("Persisting dirty state to disk", "root", root, "layers", disk.buffer.layers)
} }
// Block until the background flushing is finished. It must // Block until the background flushing is finished and terminate
// be done before terminating the potential background snapshot // the potential active state generator.
// generator.
if err := disk.terminate(); err != nil { if err := disk.terminate(); err != nil {
return err return err
} }