diff options
author | Felix Lange <fjl@twurst.com> | 2016-10-06 04:22:31 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-10-06 21:32:17 +0800 |
commit | 90fce8bfa621f8c3be6663d62740783949111ff1 (patch) | |
tree | ae93f2f9f637f0530eb0cedc354871ca377717ad /core/vm/environment.go | |
parent | 1f1ea18b5414bea22332bb4fce53cc95b5c6a07d (diff) | |
download | dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar.gz dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar.bz2 dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar.lz dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar.xz dexon-90fce8bfa621f8c3be6663d62740783949111ff1.tar.zst dexon-90fce8bfa621f8c3be6663d62740783949111ff1.zip |
core/state: rename Delete/IsDeleted to Suicide/HasSuicided
The delete/remove naming has caused endless confusion in the past.
Diffstat (limited to 'core/vm/environment.go')
-rw-r--r-- | core/vm/environment.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/vm/environment.go b/core/vm/environment.go index 1038e69d5..a4b2ac196 100644 --- a/core/vm/environment.go +++ b/core/vm/environment.go @@ -105,9 +105,12 @@ type Database interface { GetState(common.Address, common.Hash) common.Hash SetState(common.Address, common.Hash, common.Hash) - Delete(common.Address) bool + Suicide(common.Address) bool + HasSuicided(common.Address) bool + + // Exist reports whether the given account exists in state. + // Notably this should also return true for suicided accounts. Exist(common.Address) bool - IsDeleted(common.Address) bool } // Account represents a contract or basic ethereum account. |