aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain/state.go')
-rw-r--r--ethchain/state.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/ethchain/state.go b/ethchain/state.go
index 8b6c2efb8..3d05ff582 100644
--- a/ethchain/state.go
+++ b/ethchain/state.go
@@ -66,7 +66,11 @@ func (self *State) Empty() {
func (self *State) Update() {
for _, stateObject := range self.stateObjects {
- self.UpdateStateObject(stateObject)
+ if stateObject.remove {
+ self.trie.Delete(string(stateObject.Address()))
+ } else {
+ self.UpdateStateObject(stateObject)
+ }
}
}