diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-04-27 21:28:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 21:28:19 +0800 |
commit | 1da33028ce88c4365d99471977098f4911fd38fa (patch) | |
tree | c6c40618954b558f50d82aa4b9522e01365cec9c /core/state | |
parent | cfe8f5fd948954ccedd975b6630e455a4e5653db (diff) | |
parent | 7a7428a027de03ad9e80e89a70818c692193e60a (diff) | |
download | dexon-1da33028ce88c4365d99471977098f4911fd38fa.tar dexon-1da33028ce88c4365d99471977098f4911fd38fa.tar.gz dexon-1da33028ce88c4365d99471977098f4911fd38fa.tar.bz2 dexon-1da33028ce88c4365d99471977098f4911fd38fa.tar.lz dexon-1da33028ce88c4365d99471977098f4911fd38fa.tar.xz dexon-1da33028ce88c4365d99471977098f4911fd38fa.tar.zst dexon-1da33028ce88c4365d99471977098f4911fd38fa.zip |
Merge pull request #16588 from karalabe/tracer-dirty-fix
core, eth: fix tracer dirty finalization
Diffstat (limited to 'core/state')
-rw-r--r-- | core/state/statedb.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index 3ae6843d8..a952027d6 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -572,27 +572,6 @@ func (self *StateDB) Prepare(thash, bhash common.Hash, ti int) { self.txIndex = ti } -// DeleteSuicides flags the suicided objects for deletion so that it -// won't be referenced again when called / queried up on. -// -// DeleteSuicides should not be used for consensus related updates -// under any circumstances. -func (s *StateDB) DeleteSuicides() { - // Reset refund so that any used-gas calculations can use this method. - s.clearJournalAndRefund() - - for addr := range s.stateObjectsDirty { - stateObject := s.stateObjects[addr] - - // If the object has been removed by a suicide - // flag the object as deleted. - if stateObject.suicided { - stateObject.deleted = true - } - delete(s.stateObjectsDirty, addr) - } -} - func (s *StateDB) clearJournalAndRefund() { s.journal = newJournal() s.validRevisions = s.validRevisions[:0] |