aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/state_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-01 18:07:14 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-04 08:51:36 +0800
commitab16ce70fc68d9ab1b7d8cda57c180b4785cab6a (patch)
treeb6d294b8fbe8ba7f34a9f78f676ca99758a58bf5 /core/state/state_test.go
parent08caeedd842526373d30a929e63101a5fe7fda55 (diff)
downloaddexon-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar.gz
dexon-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.tar.zst
dexon-ab16ce70fc68d9ab1b7d8cda57c180b4785cab6a.zip
core, miner, tests: renamed state methods
* Update => SyncIntermediate * Added SyncObjects SyncIntermediate only updates whatever has changed, but, as a side effect, requires much more disk space. SyncObjects will only sync whatever is required for a block and will not save intermediate state to disk. As drawback this requires more time when more txs come in.
Diffstat (limited to 'core/state/state_test.go')
-rw-r--r--core/state/state_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state/state_test.go b/core/state/state_test.go
index 00e133dab..b63b8ae9b 100644
--- a/core/state/state_test.go
+++ b/core/state/state_test.go
@@ -72,7 +72,7 @@ func TestNull(t *testing.T) {
//value := common.FromHex("0x823140710bf13990e4500136726d8b55")
var value common.Hash
state.SetState(address, common.Hash{}, value)
- state.Update()
+ state.SyncIntermediate()
state.Sync()
value = state.GetState(address, common.Hash{})
if !common.EmptyHash(value) {