core/state: use address hash cache if available

This commit is contained in:
Weixie Cui 2026-04-21 20:29:58 +08:00
parent ac406c2fe7
commit f21fcf8ebe

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,