diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-03-14 21:25:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-14 21:25:12 +0800 |
commit | 91eec1251c06727581063cd7e942ba913d806971 (patch) | |
tree | e47da6be2a8b15116b773855cf06473d5b4b64ed /trie/secure_trie_test.go | |
parent | e270a753bec7e723e7909b55543a54e26210dd8a (diff) | |
download | go-tangerine-91eec1251c06727581063cd7e942ba913d806971.tar go-tangerine-91eec1251c06727581063cd7e942ba913d806971.tar.gz go-tangerine-91eec1251c06727581063cd7e942ba913d806971.tar.bz2 go-tangerine-91eec1251c06727581063cd7e942ba913d806971.tar.lz go-tangerine-91eec1251c06727581063cd7e942ba913d806971.tar.xz go-tangerine-91eec1251c06727581063cd7e942ba913d806971.tar.zst go-tangerine-91eec1251c06727581063cd7e942ba913d806971.zip |
cmd, core, eth, trie: get rid of trie cache generations (#19262)
* cmd, core, eth, trie: get rid of trie cache generations
* core, trie: get rid of remainder of cache gen boilerplate
Diffstat (limited to 'trie/secure_trie_test.go')
-rw-r--r-- | trie/secure_trie_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/trie/secure_trie_test.go b/trie/secure_trie_test.go index f0ca6c800..fb6c38ee2 100644 --- a/trie/secure_trie_test.go +++ b/trie/secure_trie_test.go @@ -28,7 +28,7 @@ import ( ) func newEmptySecure() *SecureTrie { - trie, _ := NewSecure(common.Hash{}, NewDatabase(memorydb.New()), 0) + trie, _ := NewSecure(common.Hash{}, NewDatabase(memorydb.New())) return trie } @@ -36,8 +36,7 @@ func newEmptySecure() *SecureTrie { func makeTestSecureTrie() (*Database, *SecureTrie, map[string][]byte) { // Create an empty trie triedb := NewDatabase(memorydb.New()) - - trie, _ := NewSecure(common.Hash{}, triedb, 0) + trie, _ := NewSecure(common.Hash{}, triedb) // Fill it with some arbitrary data content := make(map[string][]byte) |