Skip to content

Commit

Permalink
refacto a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Apr 29, 2022
1 parent afbd3fe commit 45bc391
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,11 +979,10 @@ func (s *StateDB) CorrectAccountsRoot(blockRoot common.Hash) {
var snapshot snapshot.Snapshot
if blockRoot == (common.Hash{}) {
snapshot = s.snap
} else {
if s.snaps != nil {
snapshot = s.snaps.Snapshot(blockRoot)
}
} else if s.snaps != nil {
snapshot = s.snaps.Snapshot(blockRoot)
}

if snapshot == nil {
return
}
Expand Down

0 comments on commit 45bc391

Please sign in to comment.