Added 7% production decline per year, effective block 210240

This commit is contained in:
Evan 2014-03-21 15:12:40 -07:00
parent 07c99052ed
commit 0f2c10e18a

View File

@ -1108,9 +1108,12 @@ int64 static GetBlockValue(int nBits, int nHeight, int64 nFees)
if (nSubsidy < 1) nSubsidy = 1;
}
//printf("height %u diff %4.2f reward %i \n", nHeight, dDiff, nSubsidy);
// printf("height %u diff %4.2f reward %i \n", nHeight, dDiff, nSubsidy);
nSubsidy *= COIN;
// yearly decline of production by 7% per year, projected 21.3M coins max by year 2050.
for(int i = 210240; i <= nHeight; i += 210240) nSubsidy *= 0.93;
return nSubsidy + nFees;
}