fmt
This commit is contained in:
parent
f8962c6c58
commit
c3c3195991
@ -21,9 +21,9 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
// "github.com/ethereum/go-ethereum/common"
|
// "github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/trie"
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/state"
|
"github.com/ethereum/go-ethereum/core/state"
|
||||||
|
"github.com/ethereum/go-ethereum/trie"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Simplified trie node iterator
|
// Simplified trie node iterator
|
||||||
@ -106,7 +106,7 @@ func VisitSubtries(tree state.Trie, cutDepth int, callback func(NodeIterator)) {
|
|||||||
|
|
||||||
for i := 0; i < len(prefixes)-1; i++ {
|
for i := 0; i < len(prefixes)-1; i++ {
|
||||||
key := prefixes[i]
|
key := prefixes[i]
|
||||||
if len(key) % 2 != 0 {
|
if len(key)%2 != 0 { // zero-pad for odd-length keys
|
||||||
key = append(key, 0)
|
key = append(key, 0)
|
||||||
}
|
}
|
||||||
it := tree.NodeIterator(HexToKeyBytes(key))
|
it := tree.NodeIterator(HexToKeyBytes(key))
|
||||||
|
Loading…
Reference in New Issue
Block a user