remove unused func

This commit is contained in:
cuiweixie 2026-01-14 20:08:26 +08:00
parent 0ec5e59b64
commit 99a70623cd

View file

@ -28,7 +28,6 @@ import (
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/lru"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/state/snapshot"
"github.com/ethereum/go-ethereum/core/stateless"
@ -53,17 +52,6 @@ const (
deletion
)
var addressHashCache = lru.NewCache[common.Address, common.Hash](10240)
func getAddressHash(addr common.Address) common.Hash {
if hash, ok := addressHashCache.Get(addr); ok {
return hash
}
hash := crypto.Keccak256Hash(addr.Bytes())
addressHashCache.Add(addr, hash)
return hash
}
type mutation struct {
typ mutationType
applied bool