Guess these will be the final ones.
There will be a slow start, 4 weeks / 1 coin.
Then 2 weeks / 25 coins.
6 weeks / 12.5 coins
6 weeks / 6.25 coins
6 weeks / 3.125 coins
6 weeks / 1.5625 coins
And final 1 coin reward.
slowly and steady..
int64 static GetBlockValue(int nHeight, int64 nFees, unsigned int nTime)
{
// Genesis block is 0 coins
if (nHeight == 0)
return 0;
// Coin swap amount
if (nHeight == 1)
return SWAP_VALUE;
else if (nHeight <= 16128) // 4 weeks with 1 Coin reward
return 1 * COIN;
int halvings = nHeight / 24192; // Halvings every 6 weeks
// Force block reward to 1 Coin when 5 halvings done
if (halvings >= 5)
return 1 * COIN;
int64 nSubsidy = 25 * COIN; // 2 weeks for 25 coin, then 6 weeks for every halving
// Subsidy is cut in half every 24192 blocks which will occur approximately every 6 weeks.
nSubsidy >>= halvings;
return nSubsidy + nFees;
}
static const int64 nTargetTimespan = 300; // 5 minutes between retargets
static const int64 nTargetSpacing = 150; // 2,5 minutes blocks
static const int64 nInterval = nTargetTimespan / nTargetSpacing; // retargets every second block
static const uint32_t BlocksTargetSpacing = 150; // 2.5 minutes
unsigned int TimeDaySeconds = 60 * 60 * 24;
int64 PastSecondsMin = TimeDaySeconds / 288; // 5 minutes
int64 PastSecondsMax = TimeDaySeconds / 1; // one day / 576 blocks
uint32_t PastBlocksMin = PastSecondsMin / BlocksTargetSpacing; //1 block
uint32_t PastBlocksMax = PastSecondsMax / BlocksTargetSpacing; //576 blocks