mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
test: Use ECC_Context helper in bench and fuzz tests
This commit is contained in:
parent
538fedde1d
commit
28905c1a64
15 changed files with 15 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue