I changed some of the difficulty parameters around (like you said) and got it mining. Subsidy was = to 0 and not 1.
However now my custom difficulty algorithm isn't the same. I'm trying to have the block reward reduced by 0.00005 every block. But this code obviously didn't work.
int64 static GetBlockValue(int nHeight, int64 nFees)
{
int64 nSubsidy = 50 * COIN - (nHeight * COIN / 20000);
// Subsidy is reduced by 0.00005 every block
nSubsidy >>= (nHeight / 0);
return nSubsidy + nFees;
}
what is the result of division by zero?
I was hoping that subsidy would never half. So the payout decreases by 0.00005 consistently until it reaches 0 after 1,000,001 blocks. Thus removing the need for a halving rate.
The division by zero has undefined result in mathematics and causes exception or abnormal termination in most implementations of computer languages. The hope is a thing for soul and faith.
If you like to remove halving then you need to remove the complete statement, not just set the divisor to zero.