Add verify equihash benchmark

This commit is contained in:
Taylor Hornby
2016-04-11 10:03:31 -06:00
parent d44feea44c
commit a1cd1a27ac
4 changed files with 30 additions and 3 deletions
+1 -1
View File
@@ -2413,7 +2413,7 @@ Value zc_benchmark(const json_spirit::Array& params, bool fHelp)
} else if (benchmarktype == "solveequihash") {
sample_times.push_back(benchmark_solve_equihash());
} else if (benchmarktype == "verifyequihash") {
throw JSONRPCError(RPC_TYPE_ERROR, "Unimplemented");
sample_times.push_back(benchmark_verify_equihash());
} else {
throw JSONRPCError(RPC_TYPE_ERROR, "Invalid benchmarktype");
}