diff options
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index e970ad06e..8fbf760af 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -326,8 +326,12 @@ func (sm *BlockProcessor) AccumulateRewards(statedb *state.StateDB, block, paren return ValidationError(fmt.Sprintf("%v", err)) } + num := new(big.Int).Add(big.NewInt(8), uncle.Number) + num.Sub(num, block.Number()) + r := new(big.Int) - r.Mul(BlockReward, big.NewInt(15)).Div(r, big.NewInt(16)) + r.Mul(BlockReward, num) + r.Div(r, big.NewInt(8)) statedb.AddBalance(uncle.Coinbase, r) |