deleteStateObject removes the given object from the state trie.
(stateObject *stateObject)
| 353 | |
| 354 | // deleteStateObject removes the given object from the state trie. |
| 355 | func (self *StateDB) deleteStateObject(stateObject *stateObject) { |
| 356 | stateObject.deleted = true |
| 357 | addr := stateObject.Address() |
| 358 | self.setError(self.trie.TryDelete(addr[:])) |
| 359 | } |
| 360 | |
| 361 | // Retrieve a state object given by the address. Returns nil if not found. |
| 362 | func (self *StateDB) getStateObject(addr common.Address) (stateObject *stateObject) { |