aboutsummaryrefslogtreecommitdiffstats
path: root/trie/secure_trie.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/secure_trie.go
parent024d41d0c2660d8f1dfbeb14921c7109e30493a2 (diff)
downloadgo-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/secure_trie.go')
-rw-r--r--trie/secure_trie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/secure_trie.go b/trie/secure_trie.go
index 4d9ebe4d3..8b90da02f 100644
--- a/trie/secure_trie.go
+++ b/trie/secure_trie.go
@@ -159,7 +159,7 @@ func (t *SecureTrie) Iterator() *Iterator {
return t.trie.Iterator()
}
-func (t *SecureTrie) NodeIterator() *NodeIterator {
+func (t *SecureTrie) NodeIterator() NodeIterator {
return NewNodeIterator(&t.trie)
}