aboutsummaryrefslogtreecommitdiffstats
path: root/state
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-01 00:23:46 +0800
committerobscuren <geffobscura@gmail.com>2015-02-01 00:23:46 +0800
commit79cd58bdf32c8e4e725480f9d6dc58f7325e07a0 (patch)
tree8f660c118d363b7516e09067c9dc22055efe7d0d /state
parentd1e5d921910bd7e584b446bd852cc48485d47788 (diff)
downloaddexon-79cd58bdf32c8e4e725480f9d6dc58f7325e07a0.tar.gz
dexon-79cd58bdf32c8e4e725480f9d6dc58f7325e07a0.tar.zst
dexon-79cd58bdf32c8e4e725480f9d6dc58f7325e07a0.zip
removed old code
Diffstat (limited to 'state')
-rw-r--r--state/statedb.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/state/statedb.go b/state/statedb.go
index 3176ab755..1b6e274de 100644
--- a/state/statedb.go
+++ b/state/statedb.go
@@ -290,30 +290,18 @@ func (self *StateDB) Refunds() map[string]*big.Int {
}
func (self *StateDB) Update(gasUsed *big.Int) {
- var deleted bool
self.refund = make(map[string]*big.Int)
for _, stateObject := range self.stateObjects {
if stateObject.remove {
self.DeleteStateObject(stateObject)
- deleted = true
} else {
stateObject.Sync()
self.UpdateStateObject(stateObject)
}
}
-
- // FIXME trie delete is broken
- if deleted {
- valid, t2 := trie.ParanoiaCheck(self.trie, self.db)
- if !valid {
- statelogger.Infof("Warn: PARANOIA: Different state root during copy %x vs %x\n", self.trie.Root(), t2.Root())
-
- self.trie = t2
- }
- }
}
func (self *StateDB) Manifest() *Manifest {