Rewrites to old wallet file correctly

This commit is contained in:
Oran Juice
2014-10-19 01:00:18 +05:30
parent 1f833dcf77
commit 031ca23ce9
3 changed files with 18 additions and 3 deletions

View File

@@ -573,7 +573,7 @@ bool simple_wallet::open_wallet(const string &wallet_file, const std::string& pa
"a deprecated version of the wallet. Please proceed to upgrade your wallet.\n";
std::string mnemonic_language = get_mnemonic_language();
m_wallet->set_seed_language(mnemonic_language);
m_wallet->generate(m_wallet_file, password, m_recovery_key, false, true);
m_wallet->rewrite(m_wallet_file, password);
}
}
catch (const std::exception& e)