diff options
author | Nick Johnson <arachnid@notdot.net> | 2017-02-23 06:49:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-02-23 06:49:34 +0800 |
commit | 555273495b413069e9422b04aa46251146c752b2 (patch) | |
tree | 969065770a87c26392449423a51d3f7e1ffe3c12 /trie/sync_test.go | |
parent | 024d41d0c2660d8f1dfbeb14921c7109e30493a2 (diff) | |
download | go-tangerine-555273495b413069e9422b04aa46251146c752b2.tar go-tangerine-555273495b413069e9422b04aa46251146c752b2.tar.gz go-tangerine-555273495b413069e9422b04aa46251146c752b2.tar.bz2 go-tangerine-555273495b413069e9422b04aa46251146c752b2.tar.lz go-tangerine-555273495b413069e9422b04aa46251146c752b2.tar.xz go-tangerine-555273495b413069e9422b04aa46251146c752b2.tar.zst go-tangerine-555273495b413069e9422b04aa46251146c752b2.zip |
trie: add difference iterator (#3637)
This PR implements a differenceIterator, which allows iterating over trie nodes
that exist in one trie but not in another. This is a prerequisite for most GC
strategies, in order to find obsolete nodes.
Diffstat (limited to 'trie/sync_test.go')
-rw-r--r-- | trie/sync_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trie/sync_test.go b/trie/sync_test.go index 4168c4d65..acae039cd 100644 --- a/trie/sync_test.go +++ b/trie/sync_test.go @@ -81,9 +81,9 @@ func checkTrieConsistency(db Database, root common.Hash) error { return nil // // Consider a non existent state consistent } it := NewNodeIterator(trie) - for it.Next() { + for it.Next(true) { } - return it.Error + return it.Error() } // Tests that an empty trie is not scheduled for syncing. |