THOSE CODE WAS COPIED FROM MAIN.C - CURRENT VERSIONCorrect me if i wrong
- currently we on the lower bracket, at diff 10 we will have a block reward of 27
(3333 / (pow((10+1),2)) - if some how to get into block 9876, at diff 10 we have a block reward of 800
(11111 / (pow((10+1)/4,2))) -- actually it's 1469 but max block reward is 800
- okay now we get into block 18000 at diff 10 we have a block reward of 52
(5555555 / (pow((10+2600)/8,2))That was a insane block reward formular if(nHeight >= 9876) {
if((nHeight >= 17000 && dDiff > 75) || nHeight >= 18000) { // GPU/ASIC difficulty calc
// 2222222/(((x+2600)/9)^2)
nSubsidy = (5555555.0 / (pow((dDiff+2600.0)/8.0,2.0)));
if (nSubsidy > 25) nSubsidy = 69;
if (nSubsidy < 5) nSubsidy = 20;
} else { // CPU mining calc
nSubsidy = (11111.0 / (pow((dDiff+1.0)/4.0,2.0)));
if (nSubsidy > 800) nSubsidy = 800;
if (nSubsidy < 75) nSubsidy = 75;
}
} else {
nSubsidy = (3333.0 / (pow((dDiff+1.0),2.0)));
if (nSubsidy > 800) nSubsidy = 800;
if (nSubsidy < 1) nSubsidy = 1;
}
AND WE STILL HAVE 1 DAY DIFF RETARGET
static const int64 nTargetTimespan = 24 * 60 * 60; // BitBlock: 1 day
static const int64 nTargetSpacing = 1.9 * 60; // BitBlock: 2.5 minutes
static const int64 nInterval = nTargetTimespan / nTargetSpacing; // 576
If i was right then KGW will activate at block 15200 if (pindexLast->nHeight+1 >= 68589) { DiffMode = 4; }
else if (pindexLast->nHeight+1 >= 34140) { DiffMode = 3; }
else if (pindexLast->nHeight+1 >= 15200) { DiffMode = 2; }