From f8962c6c581791aa9cbe2ef8e97621ba2a116c9d Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sun, 23 Aug 2020 22:11:32 -0500 Subject: [PATCH] cleanup --- pkg/iterator/iterator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/iterator/iterator.go b/pkg/iterator/iterator.go index d68f555..d2418ee 100644 --- a/pkg/iterator/iterator.go +++ b/pkg/iterator/iterator.go @@ -26,6 +26,7 @@ import ( "github.com/ethereum/go-ethereum/core/state" ) +// Simplified trie node iterator type NodeIterator interface { Next(bool) bool Error() error @@ -37,11 +38,10 @@ type NodeIterator interface { type prefixBoundIterator struct { current trie.NodeIterator endKey []byte - // endHash common.Hash } func (it *prefixBoundIterator) Next(descend bool) bool { - if it.endKey == nil { // todo: want? + if it.endKey == nil { return it.current.Next(descend) } cmp := bytes.Compare(it.current.Path(), it.endKey) // stop before endKey