Skip to content

Commit

Permalink
Fix account storage/code retention.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed May 9, 2023
1 parent 96ea5c7 commit 5a1923d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ func (s *StateDB) Finalise(deleteEmptyObjects bool) {
// Thus, we can safely ignore it here
continue
}
if obj.suicided || (deleteEmptyObjects && obj.empty()) || (obj.created && obj.sendalled) {
if (obj.suicided && obj.created) || (deleteEmptyObjects && obj.empty()) || (obj.created && obj.sendalled) {
obj.deleted = true

// We need to maintain account deletions explicitly (will remain
Expand Down

0 comments on commit 5a1923d

Please sign in to comment.