Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #636 from silasdavis/revert-selfdestruct-fix
Browse files Browse the repository at this point in the history
Revert SELFDESTRUCT fix
  • Loading branch information
Casey Kuhlman authored Aug 25, 2017
2 parents 59a4d67 + 9b1ae9a commit 4e7f45a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 113 deletions.
11 changes: 1 addition & 10 deletions manager/burrow-mint/state/block_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ func (cache *BlockCache) Sync() {
curStorage = storage
}
if curAccRemoved {
// We should delete any storage for removed accounts in anticipation of
// those accounts being reaped from the cache
delete(cache.storages, storageKey)
continue
}
value, dirty := cache.storages[storageKey].unpack()
Expand Down Expand Up @@ -227,12 +224,8 @@ func (cache *BlockCache) Sync() {
if removed {
removed := cache.backend.RemoveAccount([]byte(addrStr))
if !removed {
sanity.PanicCrisis(fmt.Sprintf("Could not remove account to be removed: %X", addrStr))
sanity.PanicCrisis(fmt.Sprintf("Could not remove account to be removed: %X", acc.Address))
}
// Since attempting to delete an already deleted account leads to a
// PanicCrisis (above) we must make sure we remove the tombstones of
// removed accounts
delete(cache.accounts, addrStr)
} else {
if acc == nil {
continue
Expand Down Expand Up @@ -266,8 +259,6 @@ func (cache *BlockCache) Sync() {
if !removed {
sanity.PanicCrisis(fmt.Sprintf("Could not remove namereg entry to be removed: %s", nameStr))
}
// Remove the tombstone name reg object from the cache
delete(cache.names, nameStr)
} else {
if entry == nil {
continue
Expand Down
103 changes: 0 additions & 103 deletions manager/burrow-mint/state/block_cache_test.go

This file was deleted.

0 comments on commit 4e7f45a

Please sign in to comment.