Add founders reward to ChainParams.

Fix bug where subsidy slow shift was ignored.
This commit is contained in:
Simon
2016-09-21 12:02:36 -07:00
parent d5dce9342b
commit db0f931570
9 changed files with 226 additions and 11 deletions

View File

@@ -786,7 +786,7 @@ Value getblocksubsidy(const Array& params, bool fHelp)
CAmount nReward = GetBlockSubsidy(nHeight, Params().GetConsensus());
CAmount nFoundersReward = 0;
if ((nHeight > 0) && (nHeight < Params().GetConsensus().nSubsidyHalvingInterval)) {
if ((nHeight > 0) && (nHeight <= Params().GetConsensus().GetLastFoundersRewardBlockHeight())) {
nFoundersReward = nReward/5;
nReward -= nFoundersReward;
}