aboutsummaryrefslogtreecommitdiff
path: root/src/bench/verify_script.cpp
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2024-05-07 08:54:19 -0400
committerTheCharlatan <seb.kung@gmail.com>2024-05-09 15:56:04 +0200
commit28905c1a64a87a56f16aea8a4d23dea7eec9ca59 (patch)
tree27655277f59883700675175957e264473528f2b2 /src/bench/verify_script.cpp
parent538fedde1d9c96a2bbe06cacc0cd6903135fbc83 (diff)
downloadbitcoin-28905c1a64a87a56f16aea8a4d23dea7eec9ca59.tar.xz
test: Use ECC_Context helper in bench and fuzz tests
Diffstat (limited to 'src/bench/verify_script.cpp')
-rw-r--r--src/bench/verify_script.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bench/verify_script.cpp b/src/bench/verify_script.cpp
index ee750bc1f8..f38aa49a23 100644
--- a/src/bench/verify_script.cpp
+++ b/src/bench/verify_script.cpp
@@ -15,7 +15,7 @@
// modified to measure performance of other types of scripts.
static void VerifyScriptBench(benchmark::Bench& bench)
{
- ECC_Start();
+ ECC_Context ecc_context{};
const uint32_t flags{SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH};
const int witnessversion = 0;
@@ -57,7 +57,6 @@ static void VerifyScriptBench(benchmark::Bench& bench)
assert(err == SCRIPT_ERR_OK);
assert(success);
});
- ECC_Stop();
}
static void VerifyNestedIfScript(benchmark::Bench& bench)