mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Mainnet Rewards scheme. Monetary Policy.
This commit is contained in:
parent
7aaab6a27a
commit
4c63a880c5
1 changed files with 15 additions and 3 deletions
|
|
@ -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) {
|
func AccumulateRewards(statedb *state.StateDB, header *types.Header, uncles []*types.Header) {
|
||||||
reward := new(big.Int).Set(BlockReward)
|
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)
|
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)
|
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)
|
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)
|
r := new(big.Int)
|
||||||
for _, uncle := range uncles {
|
for _, uncle := range uncles {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue