diff --git a/core/state/statedb.go b/core/state/statedb.go index b9b90ec521..076b08fc96 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -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