From d5aefb18979de0e9600fba9894b29fd22290a9d0 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Fri, 26 Apr 2024 16:02:24 +0800 Subject: [PATCH] triedb/pathdb: fix --- triedb/pathdb/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triedb/pathdb/database.go b/triedb/pathdb/database.go index b43c62d418..05a28aa1ef 100644 --- a/triedb/pathdb/database.go +++ b/triedb/pathdb/database.go @@ -309,7 +309,7 @@ func (db *Database) Enable(root common.Hash) error { root = types.TrieRootHash(root) stored := types.EmptyRootHash if blob := rawdb.ReadAccountTrieNode(db.diskdb, nil); len(blob) > 0 { - stored = crypto.Keccak256Hash() + stored = crypto.Keccak256Hash(blob) } if stored != root { return fmt.Errorf("state root mismatch: stored %x, synced %x", stored, root)