mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core/state: fix bidirectional storage validation in StateDB test
This commit is contained in:
parent
488d987fc4
commit
bcdaab22c0
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ func (test *snapshotTest) checkEqual(state, checkstate *StateDB) error {
|
||||||
return checkeq("GetState("+key.Hex()+")", checkstate.GetState(addr, key), value)
|
return checkeq("GetState("+key.Hex()+")", checkstate.GetState(addr, key), value)
|
||||||
})
|
})
|
||||||
forEachStorage(checkstate, addr, func(key, value common.Hash) bool {
|
forEachStorage(checkstate, addr, func(key, value common.Hash) bool {
|
||||||
return checkeq("GetState("+key.Hex()+")", checkstate.GetState(addr, key), value)
|
return checkeq("GetState("+key.Hex()+")", state.GetState(addr, key), value)
|
||||||
})
|
})
|
||||||
other := checkstate.getStateObject(addr)
|
other := checkstate.getStateObject(addr)
|
||||||
// Check dirty storage which is not in trie
|
// Check dirty storage which is not in trie
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue