No subsidy, 21 million genesis block

This commit is contained in:
Matt Corallo 2016-02-06 23:29:52 -08:00 committed by Gregory Sanders
parent 844beb0d86
commit fc86bc95c2
6 changed files with 31 additions and 10 deletions

View file

@ -1194,6 +1194,11 @@ bool ReadBlockFromDisk(CBlock& block, const CBlockIndex* pindex, const Consensus
CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams)
{
if (nHeight == 0)
return MAX_MONEY;
else
return 0;
int halvings = nHeight / consensusParams.nSubsidyHalvingInterval;
// Force block reward to zero when right shift is undefined.
if (halvings >= 64)