mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
delete uesless truncate
This commit is contained in:
parent
d4b81f0e08
commit
c201f4d64d
1 changed files with 0 additions and 1 deletions
|
|
@ -303,7 +303,6 @@ func (it *nodeIterator) Next(descend bool) bool {
|
||||||
func (it *nodeIterator) seek(prefix []byte) error {
|
func (it *nodeIterator) seek(prefix []byte) error {
|
||||||
// The path we're looking for is the hex encoded key without terminator.
|
// The path we're looking for is the hex encoded key without terminator.
|
||||||
key := keybytesToHex(prefix)
|
key := keybytesToHex(prefix)
|
||||||
key = key[:len(key)-1]
|
|
||||||
// Move forward until we're just before the closest match to key.
|
// Move forward until we're just before the closest match to key.
|
||||||
for {
|
for {
|
||||||
state, parentIndex, path, err := it.peekSeek(key)
|
state, parentIndex, path, err := it.peekSeek(key)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue