Use optimised Equihash solver for miner and benchmarks
The basic solver is still used for regtest-only purposes.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user