From 6f7d07d28268a7033060948c7ef3aaf6c0286caa Mon Sep 17 00:00:00 2001 From: sowle Date: Tue, 22 Sep 2020 17:18:53 +0300 Subject: [PATCH] wallets_manager: set wallet state to ready (instead of 0 "undefined") upon generation (fix for #219) --- src/wallet/wallets_manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet/wallets_manager.cpp b/src/wallet/wallets_manager.cpp index 91cc6324..b8d63e2b 100644 --- a/src/wallet/wallets_manager.cpp +++ b/src/wallet/wallets_manager.cpp @@ -1029,6 +1029,7 @@ std::string wallets_manager::generate_wallet(const std::wstring& path, const std EXCLUSIVE_CRITICAL_REGION_LOCAL(m_wallets_lock); wallet_vs_options& wo = m_wallets[owr.wallet_id]; **wo.w = w; + wo.wallet_state = view::wallet_status_info::wallet_state_ready; init_wallet_entry(wo, owr.wallet_id); get_wallet_info(wo, owr.wi); return API_RETURN_CODE_OK;