From 7184b37b5ba02af5fe6711fb554548a776f82474 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Sun, 3 Aug 2025 22:58:40 +0800 Subject: [PATCH] triedb/pathdb: update metadata Signed-off-by: jsvisa --- triedb/pathdb/history_indexer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/triedb/pathdb/history_indexer.go b/triedb/pathdb/history_indexer.go index 054d43e946..6695b602cc 100644 --- a/triedb/pathdb/history_indexer.go +++ b/triedb/pathdb/history_indexer.go @@ -507,6 +507,8 @@ func (i *indexIniter) index(done chan struct{}, interrupt *atomic.Int32, lastID storeIndexMetadata(i.disk, 0) log.Info("Initialized history indexing flag") } else { + // Update the metadata to indicate that indexing is complete up to lastID + storeIndexMetadata(i.disk, lastID) log.Debug("State history is fully indexed", "last", lastID) } return