diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4210c92c8fc260..5b6b2f940c825d 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4950,6 +4950,8 @@ std::shared_ptr CWallet::Create(interfaces::Chain* chain, interfaces::C return nullptr; } + coinjoin_loader.AddWallet(*walletInstance); + { LOCK(cs_wallets); for (auto& load_wallet : g_load_wallet_fns) { @@ -5058,8 +5060,6 @@ bool CWallet::AttachChain(const std::shared_ptr& walletInstance, interf walletInstance->GetDatabase().IncrementUpdateCounter(); } - coinjoin_loader.AddWallet(*walletInstance); - return true; }