mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
tests: improve error message
This commit is contained in:
parent
b72d2921b4
commit
035823284c
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@ func (t *StateTest) Run(subtest StateSubtest, vmconfig vm.Config, snapshotter bo
|
||||||
}
|
}
|
||||||
root = st.StateDB.IntermediateRoot(config.IsEIP158(new(big.Int).SetUint64(t.json.Env.Number)))
|
root = st.StateDB.IntermediateRoot(config.IsEIP158(new(big.Int).SetUint64(t.json.Env.Number)))
|
||||||
if root != common.Hash(post.Root) {
|
if root != common.Hash(post.Root) {
|
||||||
return fmt.Errorf("post state root mismatch: got %x, want %x", root, post.Root)
|
return fmt.Errorf("Post-state root does not match the pre-state root, indicates an error in the test: got %x, want %x", root, post.Root)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue