From 4c63a880c52f2df5cbaad3c00cae6cc39e5828ac Mon Sep 17 00:00:00 2001 From: Julian Yap Date: Fri, 27 Jan 2017 01:16:10 -1000 Subject: [PATCH] Mainnet Rewards scheme. Monetary Policy. --- core/state_processor.go | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/core/state_processor.go b/core/state_processor.go index 31a54b13cc..3695c6e524 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -130,15 +130,27 @@ func ApplyTransaction(config *params.ChainConfig, bc *BlockChain, gp *GasPool, s func AccumulateRewards(statedb *state.StateDB, header *types.Header, uncles []*types.Header) { reward := new(big.Int).Set(BlockReward) - if header.Number.Cmp(big.NewInt(1000)) > 0 { + if header.Number.Cmp(big.NewInt(358363)) > 0 { reward = big.NewInt(7e+18) } - if header.Number.Cmp(big.NewInt(2000)) > 0 { + if header.Number.Cmp(big.NewInt(716727)) > 0 { reward = big.NewInt(6e+18) } - if header.Number.Cmp(big.NewInt(3000)) > 0 { + if header.Number.Cmp(big.NewInt(1075090)) > 0 { reward = big.NewInt(5e+18) } + if header.Number.Cmp(big.NewInt(1433454)) > 0 { + reward = big.NewInt(4e+18) + } + if header.Number.Cmp(big.NewInt(1791818)) > 0 { + reward = big.NewInt(3e+18) + } + if header.Number.Cmp(big.NewInt(2150181)) > 0 { + reward = big.NewInt(2e+18) + } + if header.Number.Cmp(big.NewInt(2508545)) > 0 { + reward = big.NewInt(1e+18) + } r := new(big.Int) for _, uncle := range uncles {