|
|
@ -1367,8 +1367,8 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex) |
|
|
|
|
|
|
|
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) |
|
|
|
{ |
|
|
|
CAmount nSubsidy = 12.5 * COIN; |
|
|
|
|
|
|
|
CAmount nSubsidy = 3 * COIN; |
|
|
|
/*
|
|
|
|
// Mining slow start
|
|
|
|
// The subsidy is ramped up linearly, skipping the middle payout of
|
|
|
|
// MAX_SUBSIDY/2 to keep the monetary curve consistent with no slow start.
|
|
|
@ -1383,8 +1383,9 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) |
|
|
|
} |
|
|
|
|
|
|
|
assert(nHeight > consensusParams.SubsidySlowStartShift()); |
|
|
|
int halvings = (nHeight - consensusParams.SubsidySlowStartShift()) / consensusParams.nSubsidyHalvingInterval; |
|
|
|
int halvings = (nHeight - consensusParams.SubsidySlowStartShift()) / consensusParams.nSubsidyHalvingInterval;*/ |
|
|
|
// Force block reward to zero when right shift is undefined.
|
|
|
|
int halvings = nHeight / consensusParams.nSubsidyHalvingInterval; |
|
|
|
if (halvings >= 64) |
|
|
|
return 0; |
|
|
|
|
|
|
@ -3086,7 +3087,7 @@ bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIn |
|
|
|
// Coinbase transaction must include an output sending 20% of
|
|
|
|
// the block reward to `FOUNDERS_REWARD_SCRIPT` until the first
|
|
|
|
// subsidy halving block, with exception to the genesis block.
|
|
|
|
if ((nHeight > 0) && (nHeight < consensusParams.nSubsidyHalvingInterval)) { |
|
|
|
/*if ((nHeight > 0) && (nHeight < consensusParams.nSubsidyHalvingInterval)) {
|
|
|
|
bool found = false; |
|
|
|
|
|
|
|
BOOST_FOREACH(const CTxOut& output, block.vtx[0].vout) { |
|
|
@ -3101,7 +3102,7 @@ bool ContextualCheckBlock(const CBlock& block, CValidationState& state, CBlockIn |
|
|
|
if (!found) { |
|
|
|
return state.DoS(100, error("%s: founders reward missing", __func__), REJECT_INVALID, "cb-no-founders-reward"); |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|