@@ -275,10 +275,10 @@ func (self *StateDB) GetState(a common.Address, b common.Hash) common.Hash {
275275 return common.Hash {}
276276}
277277
278- func (self * StateDB ) IsDeleted (addr common.Address ) bool {
278+ func (self * StateDB ) HasSuicided (addr common.Address ) bool {
279279 stateObject := self .GetStateObject (addr )
280280 if stateObject != nil {
281- return stateObject .remove
281+ return stateObject .suicided
282282 }
283283 return false
284284}
@@ -322,22 +322,22 @@ func (self *StateDB) SetState(addr common.Address, key common.Hash, value common
322322 }
323323}
324324
325- // Delete marks the given account as suicided.
325+ // Suicide marks the given account as suicided.
326326// This clears the account balance.
327327//
328328// The account's state object is still available until the state is committed,
329- // GetStateObject will return a non-nil account after Delete .
330- func (self * StateDB ) Delete (addr common.Address ) bool {
329+ // GetStateObject will return a non-nil account after Suicide .
330+ func (self * StateDB ) Suicide (addr common.Address ) bool {
331331 stateObject := self .GetStateObject (addr )
332332 if stateObject == nil {
333333 return false
334334 }
335- self .journal = append (self .journal , deleteAccountChange {
335+ self .journal = append (self .journal , suicideChange {
336336 account : & addr ,
337- prev : stateObject .remove ,
337+ prev : stateObject .suicided ,
338338 prevbalance : new (big.Int ).Set (stateObject .Balance ()),
339339 })
340- stateObject .markForDeletion ()
340+ stateObject .markSuicided ()
341341 stateObject .data .Balance = new (big.Int )
342342 return true
343343}
@@ -516,7 +516,7 @@ func (self *StateDB) GetRefund() *big.Int {
516516func (s * StateDB ) IntermediateRoot () common.Hash {
517517 for addr , _ := range s .stateObjectsDirty {
518518 stateObject := s .stateObjects [addr ]
519- if stateObject .remove {
519+ if stateObject .suicided {
520520 s .deleteStateObject (stateObject )
521521 } else {
522522 stateObject .updateRoot (s .db )
@@ -542,7 +542,7 @@ func (s *StateDB) DeleteSuicides() {
542542
543543 // If the object has been removed by a suicide
544544 // flag the object as deleted.
545- if stateObject .remove {
545+ if stateObject .suicided {
546546 stateObject .deleted = true
547547 }
548548 delete (s .stateObjectsDirty , addr )
@@ -575,7 +575,7 @@ func (s *StateDB) commit(dbw trie.DatabaseWriter) (root common.Hash, err error)
575575
576576 // Commit objects to the trie.
577577 for addr , stateObject := range s .stateObjects {
578- if stateObject .remove {
578+ if stateObject .suicided {
579579 // If the object has been removed, don't bother syncing it
580580 // and just mark it for deletion in the trie.
581581 s .deleteStateObject (stateObject )
0 commit comments