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:
parent
a6cf555879
commit
6f7d07d282
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue