mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
triedb/pathdb: fix flaky db tests
This commit is contained in:
parent
817112f3ee
commit
c318194528
1 changed files with 1 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ func (db *Database) Enable(root common.Hash) error {
|
|||
// Ensure the provided state root matches the stored one.
|
||||
root = types.TrieRootHash(root)
|
||||
_, stored := rawdb.ReadAccountTrieNode(db.diskdb, nil)
|
||||
stored = types.TrieRootHash(stored)
|
||||
if stored != root {
|
||||
return fmt.Errorf("state root mismatch: stored %x, synced %x", stored, root)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue