@@ -305,7 +305,7 @@ BOOST_AUTO_TEST_CASE(bnb_search_test)
305
305
coin_selection_params_bnb.m_subtract_fee_outputs = true ;
306
306
307
307
{
308
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , m_args, CreateMockWalletDatabase ());
308
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , CreateMockWalletDatabase ());
309
309
wallet->LoadWallet ();
310
310
LOCK (wallet->cs_wallet );
311
311
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -327,7 +327,7 @@ BOOST_AUTO_TEST_CASE(bnb_search_test)
327
327
}
328
328
329
329
{
330
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , m_args, CreateMockWalletDatabase ());
330
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , CreateMockWalletDatabase ());
331
331
wallet->LoadWallet ();
332
332
LOCK (wallet->cs_wallet );
333
333
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -350,7 +350,7 @@ BOOST_AUTO_TEST_CASE(bnb_search_test)
350
350
BOOST_CHECK (result10);
351
351
}
352
352
{
353
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , m_args, CreateMockWalletDatabase ());
353
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , CreateMockWalletDatabase ());
354
354
wallet->LoadWallet ();
355
355
LOCK (wallet->cs_wallet );
356
356
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -415,7 +415,7 @@ BOOST_AUTO_TEST_CASE(knapsack_solver_test)
415
415
FastRandomContext rand{};
416
416
const auto temp1{[&rand](std::vector<OutputGroup>& g, const CAmount& v, CAmount c) { return KnapsackSolver (g, v, c, rand); }};
417
417
const auto KnapsackSolver{temp1};
418
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , m_args, CreateMockWalletDatabase ());
418
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , CreateMockWalletDatabase ());
419
419
wallet->LoadWallet ();
420
420
LOCK (wallet->cs_wallet );
421
421
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -725,7 +725,7 @@ BOOST_AUTO_TEST_CASE(knapsack_solver_test)
725
725
BOOST_AUTO_TEST_CASE (ApproximateBestSubset)
726
726
{
727
727
FastRandomContext rand{};
728
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , m_args, CreateMockWalletDatabase ());
728
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , CreateMockWalletDatabase ());
729
729
wallet->LoadWallet ();
730
730
LOCK (wallet->cs_wallet );
731
731
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -747,7 +747,7 @@ BOOST_AUTO_TEST_CASE(ApproximateBestSubset)
747
747
// Tests that with the ideal conditions, the coin selector will always be able to find a solution that can pay the target value
748
748
BOOST_AUTO_TEST_CASE (SelectCoins_test)
749
749
{
750
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , m_args, CreateMockWalletDatabase ());
750
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , CreateMockWalletDatabase ());
751
751
wallet->LoadWallet ();
752
752
LOCK (wallet->cs_wallet );
753
753
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -934,7 +934,7 @@ BOOST_AUTO_TEST_CASE(effective_value_test)
934
934
935
935
static util::Result<SelectionResult> select_coins (const CAmount& target, const CoinSelectionParams& cs_params, const CCoinControl& cc, std::function<CoinsResult(CWallet&)> coin_setup, interfaces::Chain* chain)
936
936
{
937
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(chain, " " , args, CreateMockWalletDatabase ());
937
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(chain, " " , CreateMockWalletDatabase ());
938
938
wallet->LoadWallet ();
939
939
LOCK (wallet->cs_wallet );
940
940
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -1056,15 +1056,15 @@ BOOST_AUTO_TEST_CASE(SelectCoins_effective_value_test)
1056
1056
// This test creates a coin whose value is higher than the target but whose effective value is lower than the target.
1057
1057
// The coin is selected using coin control, with m_allow_other_inputs = false. SelectCoins should fail due to insufficient funds.
1058
1058
1059
- std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , m_args, CreateMockWalletDatabase ());
1059
+ std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain .get (), " " , CreateMockWalletDatabase ());
1060
1060
wallet->LoadWallet ();
1061
1061
LOCK (wallet->cs_wallet );
1062
1062
wallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
1063
1063
wallet->SetupDescriptorScriptPubKeyMans ();
1064
1064
1065
1065
CoinsResult available_coins;
1066
1066
{
1067
- std::unique_ptr<CWallet> dummyWallet = std::make_unique<CWallet>(m_node.chain .get (), " dummy" , m_args, CreateMockWalletDatabase ());
1067
+ std::unique_ptr<CWallet> dummyWallet = std::make_unique<CWallet>(m_node.chain .get (), " dummy" , CreateMockWalletDatabase ());
1068
1068
dummyWallet->LoadWallet ();
1069
1069
LOCK (dummyWallet->cs_wallet );
1070
1070
dummyWallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
@@ -1105,7 +1105,7 @@ BOOST_FIXTURE_TEST_CASE(wallet_coinsresult_test, BasicTestingSetup)
1105
1105
// Test case to verify CoinsResult object sanity.
1106
1106
CoinsResult available_coins;
1107
1107
{
1108
- std::unique_ptr<CWallet> dummyWallet = std::make_unique<CWallet>(m_node.chain .get (), " dummy" , m_args, CreateMockWalletDatabase ());
1108
+ std::unique_ptr<CWallet> dummyWallet = std::make_unique<CWallet>(m_node.chain .get (), " dummy" , CreateMockWalletDatabase ());
1109
1109
BOOST_CHECK_EQUAL (dummyWallet->LoadWallet (), DBErrors::LOAD_OK);
1110
1110
LOCK (dummyWallet->cs_wallet );
1111
1111
dummyWallet->SetWalletFlag (WALLET_FLAG_DESCRIPTORS);
0 commit comments