|
|
|
@ -513,7 +513,7 @@ func (s *StateDB) getDeletedStateObject(addr common.Address) *stateObject { |
|
|
|
|
defer func(start time.Time) { s.SnapshotAccountReads += time.Since(start) }(time.Now()) |
|
|
|
|
} |
|
|
|
|
var acc *snapshot.Account |
|
|
|
|
if acc, err = s.snap.Account(crypto.Keccak256Hash(addr[:])); err == nil { |
|
|
|
|
if acc, err = s.snap.Account(crypto.Keccak256Hash(addr.Bytes())); err == nil { |
|
|
|
|
if acc == nil { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
@ -532,9 +532,9 @@ func (s *StateDB) getDeletedStateObject(addr common.Address) *stateObject { |
|
|
|
|
if metrics.EnabledExpensive { |
|
|
|
|
defer func(start time.Time) { s.AccountReads += time.Since(start) }(time.Now()) |
|
|
|
|
} |
|
|
|
|
enc, err := s.trie.TryGet(addr[:]) |
|
|
|
|
enc, err := s.trie.TryGet(addr.Bytes()) |
|
|
|
|
if err != nil { |
|
|
|
|
s.setError(fmt.Errorf("getDeleteStateObject (%x) error: %v", addr[:], err)) |
|
|
|
|
s.setError(fmt.Errorf("getDeleteStateObject (%x) error: %v", addr.Bytes(), err)) |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
if len(enc) == 0 { |
|
|
|
|