Use optimised Equihash solver for miner and benchmarks

The basic solver is still used for regtest-only purposes.
This commit is contained in:
Jack Grigg 2016-05-24 12:08:13 +12:00
parent d4d76536a5
commit b5c6a3af12
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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();
}