Add founders reward to ChainParams.
Fix bug where subsidy slow shift was ignored.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user