core, trie: decode the value for storage dump (#19943)

* core, trie: decode the value for storage dump

* core/state: address comment
This commit is contained in:
gary rong
2019-08-12 22:14:40 +08:00
committed by Péter Szilágyi
parent 8657a0d6b5
commit df6c08a485
2 changed files with 9 additions and 2 deletions

View File

@ -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,