mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
triedb/pathdb: fix
This commit is contained in:
parent
d28b39e698
commit
d5aefb1897
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue