fix linter issues

This commit is contained in:
Guillaume Ballet 2025-11-14 12:31:28 +01:00
parent 8e08bf3902
commit 922e0ec9c8
2 changed files with 0 additions and 14 deletions

View file

@ -66,7 +66,6 @@ func (bt *InternalNode) GetValuesAtStem(stem []byte, resolver NodeResolverFn) ([
bt.left = node bt.left = node
} }
return bt.left.GetValuesAtStem(stem, resolver) return bt.left.GetValuesAtStem(stem, resolver)
} }
if hn, ok := bt.right.(HashedNode); ok { if hn, ok := bt.right.(HashedNode); ok {

View file

@ -33,7 +33,6 @@ import (
"github.com/ethereum/go-ethereum/log" "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/trie/bintrie" "github.com/ethereum/go-ethereum/trie/bintrie"
"github.com/ethereum/go-ethereum/trie/trienode" "github.com/ethereum/go-ethereum/trie/trienode"
"github.com/ethereum/go-verkle"
) )
// layer is the interface implemented by all state layers which includes some // layer is the interface implemented by all state layers which includes some
@ -98,18 +97,6 @@ func merkleNodeHasher(blob []byte) (common.Hash, error) {
return crypto.Keccak256Hash(blob), nil return crypto.Keccak256Hash(blob), nil
} }
// verkleNodeHasher computes the hash of the given verkle node.
func verkleNodeHasher(blob []byte) (common.Hash, error) {
if len(blob) == 0 {
return types.EmptyVerkleHash, nil
}
n, err := verkle.ParseNode(blob, 0)
if err != nil {
return common.Hash{}, err
}
return n.Commit().Bytes(), nil
}
// binaryNodeHasher computes the hash of the given verkle node. // binaryNodeHasher computes the hash of the given verkle node.
func binaryNodeHasher(blob []byte) (common.Hash, error) { func binaryNodeHasher(blob []byte) (common.Hash, error) {
if len(blob) == 0 { if len(blob) == 0 {