Skip to content

Commit

Permalink
fix: add missing AddWallet call in TestLoadWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Dec 2, 2024
1 parent e800d9d commit 0aeeb85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wallet/test/wallet_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ static std::shared_ptr<CWallet> TestLoadWallet(interfaces::Chain* chain, interfa
std::vector<bilingual_str> warnings;
auto database = MakeWalletDatabase("", options, status, error);
auto wallet = CWallet::Create(chain, coinjoin_loader, "", std::move(database), options.create_flags, error, warnings);
if (coinjoin_loader) {
// TODO: see CreateWalletWithoutChain
AddWallet(wallet);
}
if (chain) {
wallet->postInitProcess();
}
Expand Down

0 comments on commit 0aeeb85

Please sign in to comment.