aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/environment.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-10-06 04:22:31 +0800
committerFelix Lange <fjl@twurst.com>2016-10-06 21:32:17 +0800
commit90fce8bfa621f8c3be6663d62740783949111ff1 (patch)
treeae93f2f9f637f0530eb0cedc354871ca377717ad /core/vm/environment.go
parent1f1ea18b5414bea22332bb4fce53cc95b5c6a07d (diff)
downloaddexon-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.go7
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.