@ -240,6 +240,8 @@ std::shared_ptr<CWallet> LoadWalletInternal(WalletContext& context, const std::s
status = DatabaseStatus : : FAILED_LOAD ;
status = DatabaseStatus : : FAILED_LOAD ;
return nullptr ;
return nullptr ;
}
}
NotifyWalletLoaded ( context , wallet ) ;
AddWallet ( context , wallet ) ;
AddWallet ( context , wallet ) ;
wallet - > postInitProcess ( ) ;
wallet - > postInitProcess ( ) ;
@ -356,6 +358,8 @@ std::shared_ptr<CWallet> CreateWallet(WalletContext& context, const std::string&
wallet - > Lock ( ) ;
wallet - > Lock ( ) ;
}
}
}
}
NotifyWalletLoaded ( context , wallet ) ;
AddWallet ( context , wallet ) ;
AddWallet ( context , wallet ) ;
wallet - > postInitProcess ( ) ;
wallet - > postInitProcess ( ) ;
@ -2912,8 +2916,6 @@ std::shared_ptr<CWallet> CWallet::Create(WalletContext& context, const std::stri
return nullptr ;
return nullptr ;
}
}
NotifyWalletLoaded ( context , walletInstance ) ;
{
{
LOCK ( walletInstance - > cs_wallet ) ;
LOCK ( walletInstance - > cs_wallet ) ;
walletInstance - > SetBroadcastTransactions ( args . GetBoolArg ( " -walletbroadcast " , DEFAULT_WALLETBROADCAST ) ) ;
walletInstance - > SetBroadcastTransactions ( args . GetBoolArg ( " -walletbroadcast " , DEFAULT_WALLETBROADCAST ) ) ;