diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-09-28 18:40:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-28 18:40:44 +0800 |
commit | f88bca7ba96a16e10b9feee453dbdb4f81962f34 (patch) | |
tree | 15f58419e13f75dc0dfa940be0b1a9f3930de34f /core/state/sync_test.go | |
parent | 7a5843de318f4bf0e41ddaab2d690fbe6fd04099 (diff) | |
parent | d4608ae0d2fc76ea1ba1d3a97033e60bab1f0d59 (diff) | |
download | go-tangerine-1.4.14.tar go-tangerine-1.4.14.tar.gz go-tangerine-1.4.14.tar.bz2 go-tangerine-1.4.14.tar.lz go-tangerine-1.4.14.tar.xz go-tangerine-1.4.14.tar.zst go-tangerine-1.4.14.zip |
Merge pull request #3055 from karalabe/release/1.4v1.4.14
Geth 1.4.14: What else should we rewrite?
Diffstat (limited to 'core/state/sync_test.go')
-rw-r--r-- | core/state/sync_test.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/core/state/sync_test.go b/core/state/sync_test.go index 715645c6c..c768781a4 100644 --- a/core/state/sync_test.go +++ b/core/state/sync_test.go @@ -62,9 +62,6 @@ func makeTestState() (ethdb.Database, common.Hash, []*testAccount) { } root, _ := state.Commit() - // Remove any potentially cached data from the test state creation - trie.ClearGlobalCache() - // Return the generated state return db, root, accounts } @@ -72,9 +69,6 @@ func makeTestState() (ethdb.Database, common.Hash, []*testAccount) { // checkStateAccounts cross references a reconstructed state with an expected // account array. func checkStateAccounts(t *testing.T, db ethdb.Database, root common.Hash, accounts []*testAccount) { - // Remove any potentially cached data from the state synchronisation - trie.ClearGlobalCache() - // Check root availability and state contents state, err := New(root, db) if err != nil { @@ -98,9 +92,6 @@ func checkStateAccounts(t *testing.T, db ethdb.Database, root common.Hash, accou // checkStateConsistency checks that all nodes in a state trie are indeed present. func checkStateConsistency(db ethdb.Database, root common.Hash) error { - // Remove any potentially cached data from the test state creation or previous checks - trie.ClearGlobalCache() - // Create and iterate a state trie rooted in a sub-node if _, err := db.Get(root.Bytes()); err != nil { return nil // Consider a non existent state consistent |