aboutsummaryrefslogtreecommitdiff
path: root/src/test/key_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2020-06-18 16:32:32 -0700
committerPieter Wuille <[email protected]>2020-07-30 13:57:53 -0700
commite549bf8a9afae42fcda805e216a1cde62df195a6 (patch)
tree2d00e10ead84a3162f7ddc74300dcfbd340853a4 /src/test/key_tests.cpp
parentMake script/standard's BaseHash Span-convertible (diff)
downloaddiscoin-e549bf8a9afae42fcda805e216a1cde62df195a6.tar.xz
discoin-e549bf8a9afae42fcda805e216a1cde62df195a6.zip
Make CHash256 and CHash160 consume Spans
Diffstat (limited to 'src/test/key_tests.cpp')
-rw-r--r--src/test/key_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/key_tests.cpp b/src/test/key_tests.cpp
index fd35537c7..10795225b 100644
--- a/src/test/key_tests.cpp
+++ b/src/test/key_tests.cpp
@@ -196,7 +196,7 @@ BOOST_AUTO_TEST_CASE(key_key_negation)
std::string str = "Bitcoin key verification\n";
GetRandBytes(rnd, sizeof(rnd));
uint256 hash;
- CHash256().Write((unsigned char*)str.data(), str.size()).Write(rnd, sizeof(rnd)).Finalize(hash.begin());
+ CHash256().Write(MakeUCharSpan(str)).Write(rnd).Finalize(hash.begin());
// import the static test key
CKey key = DecodeSecret(strSecret1C);