Skip to content

Commit

Permalink
triedb/pathdb: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Apr 26, 2024
1 parent 70cad97 commit 5987f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion triedb/pathdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,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)
Expand Down

0 comments on commit 5987f91

Please sign in to comment.