diff options
author | Felix Lange <fjl@twurst.com> | 2016-09-26 02:49:02 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-09-28 18:32:10 +0800 |
commit | ddadf402fcb49a4c9624441897c77de3e8cce50f (patch) | |
tree | 13d5ed3c8391a6c644bece7f3ca4f2a5a14c6b9e /light | |
parent | 7c17a6704c3c8e3deff408763c6ca78b920c2b7f (diff) | |
download | go-tangerine-ddadf402fcb49a4c9624441897c77de3e8cce50f.tar go-tangerine-ddadf402fcb49a4c9624441897c77de3e8cce50f.tar.gz go-tangerine-ddadf402fcb49a4c9624441897c77de3e8cce50f.tar.bz2 go-tangerine-ddadf402fcb49a4c9624441897c77de3e8cce50f.tar.lz go-tangerine-ddadf402fcb49a4c9624441897c77de3e8cce50f.tar.xz go-tangerine-ddadf402fcb49a4c9624441897c77de3e8cce50f.tar.zst go-tangerine-ddadf402fcb49a4c9624441897c77de3e8cce50f.zip |
[release/1.4.14] core, trie: replace state caches with trie journal
(cherry picked from commit cd791bd855b55b95afc8a5c8f56b8bf67863d099)
Diffstat (limited to 'light')
-rw-r--r-- | light/state_test.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/light/state_test.go b/light/state_test.go index 90c38604a..d7014a2dc 100644 --- a/light/state_test.go +++ b/light/state_test.go @@ -42,7 +42,6 @@ func (odr *testOdr) Retrieve(ctx context.Context, req OdrRequest) error { case *TrieRequest: t, _ := trie.New(req.root, odr.sdb) req.proof = t.Prove(req.key) - trie.ClearGlobalCache() case *NodeDataRequest: req.data, _ = odr.sdb.Get(req.hash[:]) } @@ -75,7 +74,6 @@ func TestLightStateOdr(t *testing.T) { odr := &testOdr{sdb: sdb, ldb: ldb} ls := NewLightState(root, odr) ctx := context.Background() - trie.ClearGlobalCache() for i := byte(0); i < 100; i++ { addr := common.Address{i} @@ -160,7 +158,6 @@ func TestLightStateSetCopy(t *testing.T) { odr := &testOdr{sdb: sdb, ldb: ldb} ls := NewLightState(root, odr) ctx := context.Background() - trie.ClearGlobalCache() for i := byte(0); i < 100; i++ { addr := common.Address{i} @@ -237,7 +234,6 @@ func TestLightStateDelete(t *testing.T) { odr := &testOdr{sdb: sdb, ldb: ldb} ls := NewLightState(root, odr) ctx := context.Background() - trie.ClearGlobalCache() addr := common.Address{42} |