We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1ee10 commit fa982f1Copy full SHA for fa982f1
src/qt/test/addressbooktests.cpp
@@ -1,4 +1,4 @@
1
-// Copyright (c) 2017-2022 The Bitcoin Core developers
+// Copyright (c) 2017-present The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
@@ -85,8 +85,7 @@ void TestAddAddressesToSendBook(interfaces::Node& node)
85
}
86
87
auto build_address{[]() {
88
- CKey key = GenerateRandomKey();
89
- const PKHash dest{key.GetPubKey()};
+ const WitnessV0KeyHash dest{GenerateRandomKey().GetPubKey()};
90
return std::make_pair(dest, QString::fromStdString(EncodeDestination(dest)));
91
}};
92
0 commit comments