diff options
Diffstat (limited to 'trie')
-rw-r--r-- | trie/iterator.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/trie/iterator.go b/trie/iterator.go index da93b2fad..8e84dee3b 100644 --- a/trie/iterator.go +++ b/trie/iterator.go @@ -34,7 +34,9 @@ type Iterator struct { Err error } -// NewIterator creates a new key-value iterator from a node iterator +// NewIterator creates a new key-value iterator from a node iterator. +// Note that the value returned by the iterator is raw. If the content is encoded +// (e.g. storage value is RLP-encoded), it's caller's duty to decode it. func NewIterator(it NodeIterator) *Iterator { return &Iterator{ nodeIt: it, |