Fix bug in 'generate' RPC method that caused it to fail with high probability
This commit is contained in:
parent
51eb5273f5
commit
4a0bdc9020
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue