From 79cd58bdf32c8e4e725480f9d6dc58f7325e07a0 Mon Sep 17 00:00:00 2001 From: obscuren Date: Sat, 31 Jan 2015 17:23:46 +0100 Subject: [PATCH] removed old code --- state/statedb.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/state/statedb.go b/state/statedb.go index 3176ab7555..1b6e274ded 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 {