diff options
| author | MarcoFalke <[email protected]> | 2020-04-09 11:47:32 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-04-17 10:19:32 -0400 |
| commit | fab117096446ab63d1f38c1ef6edbc94a5d4ab52 (patch) | |
| tree | 4a3e6d3eabb3c6990751f5a9b9f0100a6e27d1ee /src/bench/verify_script.cpp | |
| parent | Merge #18673: scripted-diff: Sort test includes (diff) | |
| download | discoin-fab117096446ab63d1f38c1ef6edbc94a5d4ab52.tar.xz discoin-fab117096446ab63d1f38c1ef6edbc94a5d4ab52.zip | |
bench: Remove requirement that all benches use RegTestingSetup
Diffstat (limited to 'src/bench/verify_script.cpp')
| -rw-r--r-- | src/bench/verify_script.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bench/verify_script.cpp b/src/bench/verify_script.cpp index 5ed8309b6..14bca5f7d 100644 --- a/src/bench/verify_script.cpp +++ b/src/bench/verify_script.cpp @@ -18,6 +18,9 @@ // modified to measure performance of other types of scripts. static void VerifyScriptBench(benchmark::State& state) { + const ECCVerifyHandle verify_handle; + ECC_Start(); + const int flags = SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH; const int witnessversion = 0; @@ -69,6 +72,7 @@ static void VerifyScriptBench(benchmark::State& state) assert(csuccess == 1); #endif } + ECC_Stop(); } static void VerifyNestedIfScript(benchmark::State& state) { |