8th Wonder of the World #Bitcoin
CAmount GetBlockSubsidy(int neight, const Consensus:: Params& consensusParams)
{
int halvings = neight / consensusParams.nSubsidyHalvingInterval;
// Force block reward to zero when right shift is undefined.
if (halvings >= 64)
return 0;
CAmount Subsidy = 50 * COIN;
/ Subsidy is cut in half every 210,000 blocks which will occur approximately every 4 years.
Subsidy >>= halvings; return Subsidy;