diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-06-18 16:32:32 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-07-30 13:57:53 -0700 |
commit | e549bf8a9afae42fcda805e216a1cde62df195a6 (patch) | |
tree | 2d00e10ead84a3162f7ddc74300dcfbd340853a4 /src/bench/verify_script.cpp | |
parent | 2a2182c387f607cd8284f33890bd285a81077b7f (diff) |
Make CHash256 and CHash160 consume Spans
Diffstat (limited to 'src/bench/verify_script.cpp')
-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 c489bae4f6..217c397e2b 100644 --- a/src/bench/verify_script.cpp +++ b/src/bench/verify_script.cpp @@ -34,7 +34,7 @@ static void VerifyScriptBench(benchmark::Bench& bench) key.Set(vchKey.begin(), vchKey.end(), false); CPubKey pubkey = key.GetPubKey(); uint160 pubkeyHash; - CHash160().Write(pubkey.begin(), pubkey.size()).Finalize(pubkeyHash.begin()); + CHash160().Write(pubkey).Finalize(pubkeyHash.begin()); // Script. CScript scriptPubKey = CScript() << witnessversion << ToByteVector(pubkeyHash); |