The source code is on github:
I've been test mining with a wider range ( < 1 and > 0.000001) so I can make sure the code I put in actually works (how horrible would it be if I released the coin and it really was impossible to get a coin ), but for some reason the code isn't generating anomalies when I expected it to (figures ).
Here is the code I'm using:
{
double diff = GetDifficulty();
int64 nSubsidy = 0 * COIN;
if(nHeight <= 10 )
{
if(fmod(nHeight, diff) < 1 && fmod(nHeight, diff) > 0.0000001)
{
nSubsidy = 1 * COIN;
}
}
else
{
if(fmod(nHeight, diff) < 1 && fmod(nHeight, diff) > 0.1)
{
nSubsidy = 1 * COIN;
}
}
return nSubsidy + nFees;
}
And here is my results from the test:
According to my math blocks 1 - 3 should generate an anomaly but they don't. Doesn't make much sense to me.
Any help in figuring this out would be much appreciated. I would need this done along with a Windows wallet compiled before I can release the coin (Bounties maybe? but that would involve pre-mining a few anomalies because I don't own a mining rig).
I want to release this coin before Feb 5th (2014) and at the earliest Feb 1st (2014) at noon PST.