Is anything being done to resolve the Checkpoints issue? I am trying to get NOMP (Node Open Mining Portal) working for a pool and getting a parsing error. From what I have been told it is do to the errors.
[LegendaryCoin] (Thread 2) could not parse rpc data with request of: {"method":"getmininginfo","params":[],"id":1396927936728} on instance 0 data: {"result":{"blocks":4694,"currentblocksize":1000,"currentblocktx":0,"difficulty":1.41211834,"networkhashps":51620700,"netstakeweight":-nan,"errors":"WARNING: Checkpoint is too old. Wait for block chain to download, or notify developers.","pooledtx":1,"belowweight":0,"stakeweight":0,"minweight":0,"maxweight":0,"StakeReadyLGD":0,"testnet":false},"error":null,"id":1396927936728}
Error {}
https://github.com/zone117x/node-open-mining-portal.git
The error you have has nothing to do with the checkpoints message (which is not an error, it's a simple string - text message).
The text in bold with increased font size is your problem and it's a bug in the coin's wallet. It should be corrected by the devs
I have created a small fix, that checks this value for "NotANumber" type (this is what is returned when you try to divide 0 by 0).
In file to the top, you will find function "getmininginfo" (it starts with Value getmininginfo(const Array& params, bool fHelp) ).
Inside this function, search for the following:
double dNetworkMhps = GetDifficulty() * 4294.967296 / nTargetSpacingWork;
double dNetworkWeight = dStakeKernelsTriedAvg / nStakesTime;
Object obj;
and replace with:
double dNetworkMhps = GetDifficulty() * 4294.967296 / nTargetSpacingWork;
double dNetworkWeight = dStakeKernelsTriedAvg / nStakesTime;
if ( dNetworkWeight != dNetworkWeight )
{
dNetworkWeight = 0;
}
Object obj;
Then recompile and replace your binary with the newly compiled one (don't forget to strip, right? )
Hope that helps
Thanks, that worked great. Will this fix be added to the coind on GitHub so it stays in future updates?