aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-07-04 18:42:13 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-07-04 18:42:13 +0800
commit9c3db1be1dd24c366a58a7ced22adfa0b0839efe (patch)
tree0c102cd7f590a80bc291b82274e7ca16335a250f /tests
parent9bb575be7db85f967771018a915fbc4e80345ee2 (diff)
parent47460b3b4af51e08518c781680897cf2986415cc (diff)
downloaddexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar.gz
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.tar.zst
dexon-9c3db1be1dd24c366a58a7ced22adfa0b0839efe.zip
Merge pull request #1369 from obscuren/statedb-update-cleanup
core, core/state: throw out intermediate state
Diffstat (limited to 'tests')
-rw-r--r--tests/block_test_util.go2
-rw-r--r--tests/state_test_util.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go
index 67f6a1d18..3b20da492 100644
--- a/tests/block_test_util.go
+++ b/tests/block_test_util.go
@@ -215,7 +215,7 @@ func (t *BlockTest) InsertPreState(ethereum *eth.Ethereum) (*state.StateDB, erro
}
}
// sync objects to trie
- statedb.Update()
+ statedb.SyncObjects()
// sync trie to disk
statedb.Sync()
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index 2f3d497be..7f1a22ac0 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -175,7 +175,7 @@ func RunState(statedb *state.StateDB, env, tx map[string]string) ([]byte, state.
if core.IsNonceErr(err) || core.IsInvalidTxErr(err) || state.IsGasLimitErr(err) {
statedb.Set(snapshot)
}
- statedb.Update()
+ statedb.SyncObjects()
return ret, vmenv.state.Logs(), vmenv.Gas, err
}