Ok, fixed reward halvings to be every 2 000 000 blocks instead of 2 102 400.
I am also trying to understand this line in main.cpp;
nSubsidy -= nSubsidy*(nHeight % g_RewardHalvingPeriod)/(2*g_RewardHalvingPeriod);
What does -= mean? Does it mean nSubsidy=nSubsidy-*(blah blah blah?
Also, what does the % do?
Is this the same as:
nSubsidy=nSubsidy-((g_RewardHalvingPeriod/2)/g_RewardHalvingPeriod)
I am trying to reduce nSubsidy for each block in my calculator.
What does this whole thing mean;
int halvings = nHeight / g_RewardHalvingPeriod;
nSubsidy = (halvings >= 64)? 0 : (nSubsidy >> halvings);
nSubsidy -= nSubsidy*(nHeight % g_RewardHalvingPeriod)/(2*g_RewardHalvingPeriod);