From 99d1c54273f91281c054a5cf2d7a8e9a192262bb Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 29 May 2023 17:07:57 -0400 Subject: [PATCH] wallet, tests: Have CreateSyncedWallet use CWallet::Create CWallet::Create will properly connect the wallet to the chain, so we should be doing that rather than ad-hoc chain connection. --- src/wallet/test/spend_tests.cpp | 11 +++++++++-- src/wallet/test/util.cpp | 26 +++++++++++++------------- src/wallet/test/util.h | 2 +- src/wallet/test/wallet_tests.cpp | 15 +++++++++------ 4 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/wallet/test/spend_tests.cpp b/src/wallet/test/spend_tests.cpp index b2d252b3f959d4..4eec6944902909 100644 --- a/src/wallet/test/spend_tests.cpp +++ b/src/wallet/test/spend_tests.cpp @@ -7,6 +7,7 @@ #include