From 200aa9453b3e44ed1fc60cc5302f99b14ca703e9 Mon Sep 17 00:00:00 2001 From: Delweng Date: Fri, 27 Jun 2025 15:43:31 +0800 Subject: [PATCH] triedb: reset state indexer to 0 Signed-off-by: Delweng --- triedb/pathdb/database.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/triedb/pathdb/database.go b/triedb/pathdb/database.go index 7c8c327484..14a233985d 100644 --- a/triedb/pathdb/database.go +++ b/triedb/pathdb/database.go @@ -512,6 +512,8 @@ func (db *Database) Enable(root common.Hash) error { if err := db.freezer.Reset(); err != nil { return err } + // Reset the state history indexer + storeIndexMetadata(db.diskdb, 0) } // Re-enable the database as the final step. db.waitSync = false