Use optimised Equihash solver for miner and benchmarks
The basic solver is still used for regtest-only purposes.
This commit is contained in:
parent
d4d76536a5
commit
b5c6a3af12
|
@ -514,7 +514,7 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||
LogPrint("pow", "Running Equihash solver with nNonce = %s\n",
|
||||
pblock->nNonce.ToString());
|
||||
std::set<std::vector<unsigned int>> solns;
|
||||
EhBasicSolve(n, k, curr_state, solns);
|
||||
EhOptimisedSolve(n, k, curr_state, solns);
|
||||
LogPrint("pow", "Solutions: %d\n", solns.size());
|
||||
|
||||
// Write the solution to the hash and compute the result.
|
||||
|
|
|
@ -114,7 +114,7 @@ double benchmark_solve_equihash()
|
|||
|
||||
timer_start();
|
||||
std::set<std::vector<unsigned int>> solns;
|
||||
EhBasicSolve(n, k, eh_state, solns);
|
||||
EhOptimisedSolve(n, k, eh_state, solns);
|
||||
return timer_stop();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue