Skip to content

Commit

Permalink
Params: Fix PoS block value for testnet to 5
Browse files Browse the repository at this point in the history
(ZC_V2 upgrade activated with POS at block 201)
  • Loading branch information
random-zebra committed Dec 18, 2020
1 parent b05ed1c commit 2ebb986
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ CAmount GetBlockValue(int nHeight)
return 250000 * COIN;
}
// Mainnet/Testnet block reward reduction schedule
const int nLast = isTestnet ? 648000 : Params().GetConsensus().vUpgrades[Consensus::UPGRADE_ZC_V2].nActivationHeight;
const int nLast = Params().GetConsensus().vUpgrades[Consensus::UPGRADE_ZC_V2].nActivationHeight;
if (nHeight > nLast) return 5 * COIN;
if (nHeight > 648000) return 4.5 * COIN;
if (nHeight > 604800) return 9 * COIN;
Expand All @@ -803,8 +803,7 @@ CAmount GetBlockValue(int nHeight)
if (nHeight > 388800) return 31.5 * COIN;
if (nHeight > 345600) return 36 * COIN;
if (nHeight > 302400) return 40.5 * COIN;
const int nSecond = isTestnet ? 145000 : 151200;
if (nHeight > nSecond) return 45 * COIN;
if (nHeight > 151200) return 45 * COIN;
if (nHeight > 86400) return 225 * COIN;
if (nHeight !=1) return 250 * COIN;
// Premine for 6 masternodes at block 1
Expand Down

0 comments on commit 2ebb986

Please sign in to comment.