Skip to content

Commit 2ebb986

Browse files
committed
Params: Fix PoS block value for testnet to 5
(ZC_V2 upgrade activated with POS at block 201)
1 parent b05ed1c commit 2ebb986

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/validation.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ CAmount GetBlockValue(int nHeight)
792792
return 250000 * COIN;
793793
}
794794
// Mainnet/Testnet block reward reduction schedule
795-
const int nLast = isTestnet ? 648000 : Params().GetConsensus().vUpgrades[Consensus::UPGRADE_ZC_V2].nActivationHeight;
795+
const int nLast = Params().GetConsensus().vUpgrades[Consensus::UPGRADE_ZC_V2].nActivationHeight;
796796
if (nHeight > nLast) return 5 * COIN;
797797
if (nHeight > 648000) return 4.5 * COIN;
798798
if (nHeight > 604800) return 9 * COIN;
@@ -803,8 +803,7 @@ CAmount GetBlockValue(int nHeight)
803803
if (nHeight > 388800) return 31.5 * COIN;
804804
if (nHeight > 345600) return 36 * COIN;
805805
if (nHeight > 302400) return 40.5 * COIN;
806-
const int nSecond = isTestnet ? 145000 : 151200;
807-
if (nHeight > nSecond) return 45 * COIN;
806+
if (nHeight > 151200) return 45 * COIN;
808807
if (nHeight > 86400) return 225 * COIN;
809808
if (nHeight !=1) return 250 * COIN;
810809
// Premine for 6 masternodes at block 1

0 commit comments

Comments
 (0)