aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-04-18 19:37:10 +0800
committerFelix Lange <fjl@twurst.com>2017-04-25 08:14:31 +0800
commita13e920af01692cb07a520cda688f1cc5b5469dd (patch)
tree2321214787947ca0b4f302225aa2950617dd5cdd /trie/trie_test.go
parentf958d7d4822d257598ae36fc3b381040faa5bb30 (diff)
downloadgo-tangerine-a13e920af01692cb07a520cda688f1cc5b5469dd.tar
go-tangerine-a13e920af01692cb07a520cda688f1cc5b5469dd.tar.gz
go-tangerine-a13e920af01692cb07a520cda688f1cc5b5469dd.tar.bz2
go-tangerine-a13e920af01692cb07a520cda688f1cc5b5469dd.tar.lz
go-tangerine-a13e920af01692cb07a520cda688f1cc5b5469dd.tar.xz
go-tangerine-a13e920af01692cb07a520cda688f1cc5b5469dd.tar.zst
go-tangerine-a13e920af01692cb07a520cda688f1cc5b5469dd.zip
trie: clean up iterator constructors
Make it so each iterator has exactly one public constructor: - NodeIterators can be created through a method. - Iterators can be created through NewIterator on any NodeIterator.
Diffstat (limited to 'trie/trie_test.go')
-rw-r--r--trie/trie_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/trie_test.go b/trie/trie_test.go
index 01ae3a4e7..cacb08824 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -439,7 +439,7 @@ func runRandTest(rt randTest) bool {
tr = newtr
case opItercheckhash:
checktr, _ := New(common.Hash{}, nil)
- it := tr.Iterator()
+ it := NewIterator(tr.NodeIterator())
for it.Next() {
checktr.Update(it.Key, it.Value)
}