Skip to content

Commit

Permalink
add check for snap
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Apr 28, 2022
1 parent c5bcb48 commit afbd3fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,9 @@ func (s *StateDB) CorrectAccountsRoot(blockRoot common.Hash) {
if s.snaps != nil {
snapshot = s.snaps.Snapshot(blockRoot)
}
if snapshot == nil {
return
}
}
if snapshot == nil {
return
}
if accounts, err := snapshot.Accounts(); err == nil && accounts != nil {
for _, obj := range s.stateObjects {
Expand Down

0 comments on commit afbd3fe

Please sign in to comment.