diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-03-27 20:13:30 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-03-28 14:32:02 +0800 |
commit | d985b9052ae08f2538e6caa7e6b5ef351a00bc3e (patch) | |
tree | c1c638b59b210c666d2c42dcf9a8edc341e493e9 /core/state/statedb_test.go | |
parent | 958ed4f3d977b08465915e475e11aaab3d2dc574 (diff) | |
download | go-tangerine-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar go-tangerine-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.gz go-tangerine-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.bz2 go-tangerine-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.lz go-tangerine-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.xz go-tangerine-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.zst go-tangerine-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.zip |
core/state: avoid linear overhead on journal dirty listing
Diffstat (limited to 'core/state/statedb_test.go')
-rw-r--r-- | core/state/statedb_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index 05bc0499b..340c840f1 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -414,11 +414,11 @@ func (s *StateSuite) TestTouchDelete(c *check.C) { snapshot := s.state.Snapshot() s.state.AddBalance(common.Address{}, new(big.Int)) - if len(s.state.journal.flatten()) != 1 { + if len(s.state.journal.dirties) != 1 { c.Fatal("expected one dirty state object") } s.state.RevertToSnapshot(snapshot) - if len(s.state.journal.flatten()) != 0 { + if len(s.state.journal.dirties) != 0 { c.Fatal("expected no dirty state object") } } |