From fa982f14254433a969499e93c1c3f0db31dce6ab Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Mon, 19 May 2025 14:27:07 +0200 Subject: [PATCH] Use WitnessV0KeyHash in TestAddAddressesToSendBook --- src/qt/test/addressbooktests.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/qt/test/addressbooktests.cpp b/src/qt/test/addressbooktests.cpp index 507d26a44c7..d2ac1306ae4 100644 --- a/src/qt/test/addressbooktests.cpp +++ b/src/qt/test/addressbooktests.cpp @@ -1,4 +1,4 @@ -// Copyright (c) 2017-2022 The Bitcoin Core developers +// Copyright (c) 2017-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -85,8 +85,7 @@ void TestAddAddressesToSendBook(interfaces::Node& node) } auto build_address{[]() { - CKey key = GenerateRandomKey(); - const PKHash dest{key.GetPubKey()}; + const WitnessV0KeyHash dest{GenerateRandomKey().GetPubKey()}; return std::make_pair(dest, QString::fromStdString(EncodeDestination(dest))); }};