Fixed uncle rewards in miner

The uncle rewards were changed in the block processor. This change will
reflect those changes in the miner as well.
This commit is contained in:
obscuren
2015-04-01 21:18:41 +02:00
parent 516ec28544
commit 344b3556eb
3 changed files with 25 additions and 22 deletions

View File

@ -270,7 +270,7 @@ gasLimit:
self.current.block.SetUncles(uncles)
self.current.state.AddBalance(self.coinbase, core.BlockReward)
core.AccumulateRewards(self.current.state, self.current.block)
self.current.state.Update(common.Big0)
self.push()
@ -297,9 +297,6 @@ func (self *worker) commitUncle(uncle *types.Header) error {
return core.UncleError(fmt.Sprintf("Uncle already in family (%x)", uncle.Hash()))
}
self.current.state.AddBalance(uncle.Coinbase, uncleReward)
self.current.state.AddBalance(self.coinbase, inclusionReward)
return nil
}