prompt for seed language and error handling

- "seed" simplewallet command was only displaying seed if wallet was newly generated
This commit is contained in:
warptangent
2014-11-06 14:36:36 -08:00
parent e1555fdf8b
commit 3dd19c4cd4
3 changed files with 24 additions and 0 deletions

View File

@@ -207,6 +207,13 @@ bool simple_wallet::viewkey(const std::vector<std::string> &args/* = std::vector
bool simple_wallet::seed(const std::vector<std::string> &args/* = std::vector<std::string>()*/)
{
std::string electrum_words;
if (m_wallet->get_seed_language().empty())
{
std::string mnemonic_language = get_mnemonic_language();
m_wallet->set_seed_language(mnemonic_language);
}
bool success = m_wallet->get_seed(electrum_words);
if (success)