mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fix: add missing AddWallet
call in TestLoadWallet
This commit is contained in:
parent
e800d9d09c
commit
0aeeb8583a
@ -59,6 +59,10 @@ static std::shared_ptr<CWallet> TestLoadWallet(interfaces::Chain* chain, interfa
|
|||||||
std::vector<bilingual_str> warnings;
|
std::vector<bilingual_str> warnings;
|
||||||
auto database = MakeWalletDatabase("", options, status, error);
|
auto database = MakeWalletDatabase("", options, status, error);
|
||||||
auto wallet = CWallet::Create(chain, coinjoin_loader, "", std::move(database), options.create_flags, error, warnings);
|
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) {
|
if (chain) {
|
||||||
wallet->postInitProcess();
|
wallet->postInitProcess();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user