Add compile flag to disable compilation of mining code
This commit is contained in:
@@ -2498,6 +2498,7 @@ Value zc_benchmark(const json_spirit::Array& params, bool fHelp)
|
||||
}
|
||||
} else if (benchmarktype == "verifyjoinsplit") {
|
||||
sample_times.push_back(benchmark_verify_joinsplit(samplejoinsplit));
|
||||
#ifdef ENABLE_MINING
|
||||
} else if (benchmarktype == "solveequihash") {
|
||||
if (params.size() < 3) {
|
||||
sample_times.push_back(benchmark_solve_equihash());
|
||||
@@ -2506,6 +2507,7 @@ Value zc_benchmark(const json_spirit::Array& params, bool fHelp)
|
||||
std::vector<double> vals = benchmark_solve_equihash_threaded(nThreads);
|
||||
sample_times.insert(sample_times.end(), vals.begin(), vals.end());
|
||||
}
|
||||
#endif
|
||||
} else if (benchmarktype == "verifyequihash") {
|
||||
sample_times.push_back(benchmark_verify_equihash());
|
||||
} else if (benchmarktype == "validatelargetx") {
|
||||
|
||||
Reference in New Issue
Block a user