1
0
Fork 0
forked from lthn/blockchain

wallets_manager: set wallet state to ready (instead of 0 "undefined") upon generation (fix for #219)

This commit is contained in:
sowle 2020-09-22 17:18:53 +03:00
parent a6cf555879
commit 6f7d07d282
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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;