From 7766f23b3ff6ac2946929936a5c172dd523521fb Mon Sep 17 00:00:00 2001 From: cygnusxi Date: Wed, 9 May 2018 23:40:46 -0500 Subject: [PATCH] Change Stake hard fork method slightly Tested various ways as noted in commits. This produces 4x the prefork stake values as desired, increasing from 1% to 4%. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 129732c..0f3fb50 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1038,7 +1038,7 @@ int64 GetProofOfStakeReward(int64 nCoinAge, unsigned int nBits, unsigned int nTi // Stage 2 of emission process is PoS-based. It will be active on mainNet since 20 Jun 2013. CBigNum bnRewardCoinYearLimit = MAX_MINT_PROOF_OF_STAKE; // Base stake mint rate, 100% year interest - if (nBestHeight > (int)HF_BLOCK) bnRewardCoinYearLimit = (int)0.04 * MAX_MINT_PROOF_OF_STAKE; // 4% hardfork + if (nBestHeight > (int)HF_BLOCK) bnRewardCoinYearLimit = (int)4 * MAX_MINT_PROOF_OF_STAKE; // 4% hardfork CBigNum bnTarget; bnTarget.SetCompact(nBits); CBigNum bnTargetLimit = bnProofOfStakeLimit; @@ -1066,7 +1066,7 @@ int64 GetProofOfStakeReward(int64 nCoinAge, unsigned int nBits, unsigned int nTi bnLowerBound = bnMidValue; } nRewardCoinYear = bnUpperBound.getuint64(); - if (nBestHeight > (int)HF_BLOCK) min(nRewardCoinYear, (int)0.04 * MAX_MINT_PROOF_OF_STAKE); // 4% hardfork + if (nBestHeight > (int)HF_BLOCK) min(nRewardCoinYear, (int)4 * MAX_MINT_PROOF_OF_STAKE); // 4% hardfork else nRewardCoinYear = min(nRewardCoinYear, MAX_MINT_PROOF_OF_STAKE);