Make number of inputs configurable in validatelargetx test

This commit is contained in:
Jack Grigg
2018-02-07 22:56:22 +00:00
parent a3353b4e01
commit 818b94f94f
4 changed files with 13 additions and 22 deletions

View File

@@ -2581,7 +2581,12 @@ UniValue zc_benchmark(const UniValue& params, bool fHelp)
} else if (benchmarktype == "verifyequihash") {
sample_times.push_back(benchmark_verify_equihash());
} else if (benchmarktype == "validatelargetx") {
sample_times.push_back(benchmark_large_tx());
// Number of inputs in the spending transaction that we will simulate
int nInputs = 555;
if (params.size() >= 3) {
nInputs = params[2].get_int();
}
sample_times.push_back(benchmark_large_tx(nInputs));
} else if (benchmarktype == "trydecryptnotes") {
int nAddrs = params[2].get_int();
sample_times.push_back(benchmark_try_decrypt_notes(nAddrs));