core/state: use address hash cache if available (#34780)

This commit is contained in:
cui 2026-04-22 11:05:59 +08:00 committed by GitHub
parent dca3cf02a2
commit 3abc4cea35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1126,7 +1126,7 @@ func (s *StateDB) handleDestruction(noStorageWiping bool) (map[common.Hash]*Acco
continue
}
// The account was existent, it can be either case (c) or (d).
addrHash := crypto.Keccak256Hash(addr.Bytes())
addrHash := prevObj.addrHash()
op := &AccountDelete{
Address: addr,
Origin: prev,