int64 static GetBlockValue(int nHeight, int64 nFees)
{
int64 nSubsidy = 100 * COIN;
if(nHeight == 1)
{
nSubsidy = 392000000 * COIN;
}
// Subsidy is cut in half every 840000 blocks
nSubsidy >>= (nHeight / 840000);
return nSubsidy + nFees;
}
huge premine