mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
fix linter issues
This commit is contained in:
parent
8e08bf3902
commit
922e0ec9c8
2 changed files with 0 additions and 14 deletions
|
|
@ -66,7 +66,6 @@ func (bt *InternalNode) GetValuesAtStem(stem []byte, resolver NodeResolverFn) ([
|
|||
bt.left = node
|
||||
}
|
||||
return bt.left.GetValuesAtStem(stem, resolver)
|
||||
|
||||
}
|
||||
|
||||
if hn, ok := bt.right.(HashedNode); ok {
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ import (
|
|||
"github.com/ethereum/go-ethereum/log"
|
||||
"github.com/ethereum/go-ethereum/trie/bintrie"
|
||||
"github.com/ethereum/go-ethereum/trie/trienode"
|
||||
"github.com/ethereum/go-verkle"
|
||||
)
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
// 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.
|
||||
func binaryNodeHasher(blob []byte) (common.Hash, error) {
|
||||
if len(blob) == 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue