fix: add missing AddWallet call in TestLoadWallet

This commit is contained in:
UdjinM6 2024-12-02 23:00:09 +03:00
parent e800d9d09c
commit 0aeeb8583a
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -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();
}