Skip to content

Commit

Permalink
core/state: add log for state object
Browse files Browse the repository at this point in the history
  • Loading branch information
hadv committed May 15, 2023
1 parent e10b196 commit 5fc0f51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ func (s *StateDB) getDeletedStateObject(addr common.Address) *stateObject {
if s.snap != nil {
start := time.Now()
acc, err := s.snap.Account(crypto.HashData(s.hasher, addr.Bytes()))
log.Warn("getDeletedStateObject", "address", addr, "balance", acc.Balance, "code", acc.CodeHash, "nonce", acc.Nonce)
if metrics.EnabledExpensive {
s.SnapshotAccountReads += time.Since(start)
}
Expand Down

0 comments on commit 5fc0f51

Please sign in to comment.