removed old code
This commit is contained in:
parent
d1e5d92191
commit
79cd58bdf3
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue