Skip to content

Commit fa982f1

Browse files
author
MarcoFalke
committed
Use WitnessV0KeyHash in TestAddAddressesToSendBook
1 parent ff1ee10 commit fa982f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/qt/test/addressbooktests.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017-2022 The Bitcoin Core developers
1+
// Copyright (c) 2017-present The Bitcoin Core developers
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

@@ -85,8 +85,7 @@ void TestAddAddressesToSendBook(interfaces::Node& node)
8585
}
8686

8787
auto build_address{[]() {
88-
CKey key = GenerateRandomKey();
89-
const PKHash dest{key.GetPubKey()};
88+
const WitnessV0KeyHash dest{GenerateRandomKey().GetPubKey()};
9089
return std::make_pair(dest, QString::fromStdString(EncodeDestination(dest)));
9190
}};
9291

0 commit comments

Comments
 (0)