Skip to content

Commit

Permalink
Revert "core/state: mark account as dirty when resetObject occurs"
Browse files Browse the repository at this point in the history
This reverts commit 15bd21f.
  • Loading branch information
PlasmaPower committed Nov 21, 2023
1 parent 65bc346 commit d893229
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions core/state/journal.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ type (
account *common.Address
}
resetObjectChange struct {
account *common.Address
prev *stateObject
prevdestruct bool
prevAccount []byte
Expand Down Expand Up @@ -181,7 +180,7 @@ func (ch resetObjectChange) revert(s *StateDB) {
}

func (ch resetObjectChange) dirtied() *common.Address {
return ch.account
return nil
}

func (ch selfDestructChange) revert(s *StateDB) {
Expand Down
1 change: 0 additions & 1 deletion core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,6 @@ func (s *StateDB) createObject(addr common.Address) (newobj, prev *stateObject)
// cache the latest account/storage data.
prevAccount, ok := s.accountsOrigin[prev.address]
s.journal.append(resetObjectChange{
account: &addr,
prev: prev,
prevdestruct: prevdestruct,
prevAccount: s.accounts[prev.addrHash],
Expand Down

0 comments on commit d893229

Please sign in to comment.