Skip to content

Commit 30c6f64

Browse files
test: Remove unnecessary LoadWallet() calls
1 parent 2a97ff4 commit 30c6f64

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/wallet/test/coinselector_tests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ inline std::vector<OutputGroup>& KnapsackGroupOutputs(const CoinsResult& availab
159159
static std::unique_ptr<CWallet> NewWallet(const node::NodeContext& m_node, const std::string& wallet_name = "")
160160
{
161161
std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain.get(), wallet_name, CreateMockableWalletDatabase());
162-
BOOST_CHECK(wallet->LoadWallet() == DBErrors::LOAD_OK);
163162
LOCK(wallet->cs_wallet);
164163
wallet->SetWalletFlag(WALLET_FLAG_DESCRIPTORS);
165164
wallet->SetupDescriptorScriptPubKeyMans();

src/wallet/test/group_outputs_tests.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ static int nextLockTime = 0;
1919
static std::shared_ptr<CWallet> NewWallet(const node::NodeContext& m_node)
2020
{
2121
std::unique_ptr<CWallet> wallet = std::make_unique<CWallet>(m_node.chain.get(), "", CreateMockableWalletDatabase());
22-
wallet->LoadWallet();
2322
LOCK(wallet->cs_wallet);
2423
wallet->SetWalletFlag(WALLET_FLAG_DESCRIPTORS);
2524
wallet->SetupDescriptorScriptPubKeyMans();

src/wallet/test/wallet_test_fixture.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ WalletTestingSetup::WalletTestingSetup(const ChainType chainType)
1414
m_wallet_loader{interfaces::MakeWalletLoader(*m_node.chain, *Assert(m_node.args))},
1515
m_wallet(m_node.chain.get(), "", CreateMockableWalletDatabase())
1616
{
17-
m_wallet.LoadWallet();
1817
m_chain_notifications_handler = m_node.chain->handleNotifications({ &m_wallet, [](CWallet*) {} });
1918
m_wallet_loader->registerRpcs();
2019
}

0 commit comments

Comments
 (0)