From 865ee1af201238f48671e3b79b8215f896db7a05 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Wed, 15 Sep 2021 22:11:31 -0400 Subject: [PATCH] Fix Qt test broken by #22219 It looks like this should have been caught by CI but perhaps there was a conflict with a recently merged PR. Failure reported by fanquake https://github.com/bitcoin/bitcoin/pull/22219#issuecomment-920496509 --- src/qt/test/addressbooktests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt/test/addressbooktests.cpp b/src/qt/test/addressbooktests.cpp index f4d561286ed..0de781661ac 100644 --- a/src/qt/test/addressbooktests.cpp +++ b/src/qt/test/addressbooktests.cpp @@ -60,6 +60,8 @@ void EditAddressAndSubmit( void TestAddAddressesToSendBook(interfaces::Node& node) { TestChain100Setup test; + auto wallet_client = interfaces::MakeWalletClient(*test.m_node.chain, *Assert(test.m_node.args)); + test.m_node.wallet_client = wallet_client.get(); node.setContext(&test.m_node); std::shared_ptr wallet = std::make_shared(node.context()->chain.get(), "", CreateMockWalletDatabase()); wallet->SetupLegacyScriptPubKeyMan();