Fix bug in 'generate' RPC method that caused it to fail with high probability

This commit is contained in:
Jack Grigg 2016-07-30 01:28:17 +12:00
parent 51eb5273f5
commit 4a0bdc9020
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ Value generate(const Array& params, bool fHelp)
pblock->nSolution = soln;
return CheckProofOfWork(pblock->GetHash(), pblock->nBits, Params().GetConsensus());
};
if (EhBasicSolveUncancellable(n, k, curr_state, validBlock));
if (EhBasicSolveUncancellable(n, k, curr_state, validBlock))
goto endloop;
}
endloop: