From c201f4d64dc46a1ef0edca3891585471c7ca7244 Mon Sep 17 00:00:00 2001 From: maskpp Date: Mon, 3 Jun 2024 10:48:28 +0800 Subject: [PATCH] delete uesless truncate --- trie/iterator.go | 1 - 1 file changed, 1 deletion(-) diff --git a/trie/iterator.go b/trie/iterator.go index 83ccc0740f..9d6fd1cd24 100644 --- a/trie/iterator.go +++ b/trie/iterator.go @@ -303,7 +303,6 @@ func (it *nodeIterator) Next(descend bool) bool { func (it *nodeIterator) seek(prefix []byte) error { // The path we're looking for is the hex encoded key without terminator. key := keybytesToHex(prefix) - key = key[:len(key)-1] // Move forward until we're just before the closest match to key. for { state, parentIndex, path, err := it.peekSeek(key)