From a542816c862441c6ef4f6ff31cc153772656be05 Mon Sep 17 00:00:00 2001 From: Julian Yap Date: Sun, 4 Dec 2016 00:13:09 -1000 Subject: [PATCH] Reduce rewards for including uncles in blocks --- core/state_processor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index 208cbcd754..9e330a4a44 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -29,7 +29,7 @@ import ( ) var ( - big8 = big.NewInt(8) + big2 = big.NewInt(2) big32 = big.NewInt(32) ) @@ -124,10 +124,10 @@ func AccumulateRewards(statedb *state.StateDB, header *types.Header, uncles []*t reward := new(big.Int).Set(BlockReward) r := new(big.Int) for _, uncle := range uncles { - r.Add(uncle.Number, big8) + r.Add(uncle.Number, big2) r.Sub(r, header.Number) r.Mul(r, BlockReward) - r.Div(r, big8) + r.Div(r, big2) statedb.AddBalance(uncle.Coinbase, r) r.Div(BlockReward, big32)