[release/1.4.16] core/state: rename Delete/IsDeleted to Suicide/HasSuicided

The delete/remove naming has caused endless confusion in the past.

(cherry picked from commit 90fce8bfa6)
This commit is contained in:
Felix Lange
2016-10-05 22:22:31 +02:00
parent 46a527d014
commit 74d5251b70
9 changed files with 35 additions and 32 deletions

View File

@ -614,7 +614,7 @@ func opSuicide(instr instruction, pc *uint64, env Environment, contract *Contrac
balance := env.Db().GetBalance(contract.Address())
env.Db().AddBalance(common.BigToAddress(stack.pop()), balance)
env.Db().Delete(contract.Address())
env.Db().Suicide(contract.Address())
}
// following functions are used by the instruction jump table