removed old code

This commit is contained in:
obscuren 2015-01-31 17:23:46 +01:00
parent d1e5d92191
commit 79cd58bdf3
1 changed files with 0 additions and 12 deletions

View File

@ -290,30 +290,18 @@ func (self *StateDB) Refunds() map[string]*big.Int {
} }
func (self *StateDB) Update(gasUsed *big.Int) { func (self *StateDB) Update(gasUsed *big.Int) {
var deleted bool
self.refund = make(map[string]*big.Int) self.refund = make(map[string]*big.Int)
for _, stateObject := range self.stateObjects { for _, stateObject := range self.stateObjects {
if stateObject.remove { if stateObject.remove {
self.DeleteStateObject(stateObject) self.DeleteStateObject(stateObject)
deleted = true
} else { } else {
stateObject.Sync() stateObject.Sync()
self.UpdateStateObject(stateObject) 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 { func (self *StateDB) Manifest() *Manifest {