diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-06-13 17:11:09 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-06-14 08:02:45 +0200 |
commit | fa621ededdfe31a200b77a8787de7e3d2e667aec (patch) | |
tree | a2ed1f8f92630acb201c1fc3d57e2eab550a8ad2 /src/bench | |
parent | 9c1ec689f353d3d7c34695a074f82bb2ea449538 (diff) |
refactor: Pass script verify flags as uint32_t
They are cast to unsigned anyway when calling VerifyScript,
bitcoinconsensus_verify_script*, or CountWitnessSigOps.
Diffstat (limited to 'src/bench')
-rw-r--r-- | src/bench/verify_script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/verify_script.cpp b/src/bench/verify_script.cpp index 39e74b9b2b..928aa7573c 100644 --- a/src/bench/verify_script.cpp +++ b/src/bench/verify_script.cpp @@ -21,7 +21,7 @@ static void VerifyScriptBench(benchmark::Bench& bench) const ECCVerifyHandle verify_handle; ECC_Start(); - const int flags = SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH; + const uint32_t flags{SCRIPT_VERIFY_WITNESS | SCRIPT_VERIFY_P2SH}; const int witnessversion = 0; // Key pair. |