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.
Showing
- core/state/dump.go 3 additions, 2 deletionscore/state/dump.go
- core/state/iterator.go 1 addition, 1 deletioncore/state/iterator.go
- core/state/statedb.go 1 addition, 1 deletioncore/state/statedb.go
- trie/iterator.go 4 additions, 11 deletionstrie/iterator.go
- trie/iterator_test.go 7 additions, 7 deletionstrie/iterator_test.go
- trie/secure_trie.go 1 addition, 5 deletionstrie/secure_trie.go
- trie/sync_test.go 1 addition, 1 deletiontrie/sync_test.go
- trie/trie.go 2 additions, 2 deletionstrie/trie.go
- trie/trie_test.go 1 addition, 1 deletiontrie/trie_test.go
Loading
Please register or sign in to comment