From 950ae5b4d96f94d0a42eb4ec010ed7430be69563 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 13 May 2025 15:10:59 +0800 Subject: [PATCH] triedb/pathdb: polish --- triedb/pathdb/disklayer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/triedb/pathdb/disklayer.go b/triedb/pathdb/disklayer.go index 28c6217c4b..ca368ca048 100644 --- a/triedb/pathdb/disklayer.go +++ b/triedb/pathdb/disklayer.go @@ -44,7 +44,8 @@ type diskLayer struct { stale bool // Signals that the layer became stale (state progressed) lock sync.RWMutex // Lock used to protect stale flag and genMarker - // The generator is set if the state snapshot was not fully completed + // The generator is set if the state snapshot was not fully completed, + // regardless of whether the background generation is running or not. generator *generator }