aboutsummaryrefslogtreecommitdiffstats
path: root/trie/sync_test.go
diff options
context:
space:
mode:
authorNick Johnson <arachnid@notdot.net>2017-02-23 06:49:34 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-02-23 06:49:34 +0800
commit555273495b413069e9422b04aa46251146c752b2 (patch)
tree969065770a87c26392449423a51d3f7e1ffe3c12 /trie/sync_test.go
parent024d41d0c2660d8f1dfbeb14921c7109e30493a2 (diff)
downloaddexon-555273495b413069e9422b04aa46251146c752b2.tar
dexon-555273495b413069e9422b04aa46251146c752b2.tar.gz
dexon-555273495b413069e9422b04aa46251146c752b2.tar.bz2
dexon-555273495b413069e9422b04aa46251146c752b2.tar.lz
dexon-555273495b413069e9422b04aa46251146c752b2.tar.xz
dexon-555273495b413069e9422b04aa46251146c752b2.tar.zst
dexon-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.go4
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.