From 41f85203a763d469e6517163bf243a200e17c9f1 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Thu, 19 Jun 2025 18:50:51 +0800 Subject: [PATCH] triedb/pathdb: fix comments --- triedb/pathdb/journal.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/triedb/pathdb/journal.go b/triedb/pathdb/journal.go index d4a6b3e262..e88b3e062f 100644 --- a/triedb/pathdb/journal.go +++ b/triedb/pathdb/journal.go @@ -301,9 +301,8 @@ func (db *Database) Journal(root common.Hash) error { } 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) } - // Block until the background flushing is finished. It must - // be done before terminating the potential background snapshot - // generator. + // Block until the background flushing is finished and terminate + // the potential active state generator. if err := disk.terminate(); err != nil { return err }