mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
remove unused func
This commit is contained in:
parent
0ec5e59b64
commit
99a70623cd
1 changed files with 0 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue