diff options
author | warptangent <warptangent@inbox.com> | 2014-11-06 14:36:36 -0800 |
---|---|---|
committer | warptangent <warptangent@inbox.com> | 2014-12-01 14:36:24 -0800 |
commit | 3dd19c4cd426c06a1dfb5d631174cb3b038f1f4c (patch) | |
tree | 297651294e261a7dd2753c3dbd1fa4632b8f8f8e /src/simplewallet/simplewallet.cpp | |
parent | Merge pull request #192 (diff) | |
download | monero-3dd19c4cd426c06a1dfb5d631174cb3b038f1f4c.tar.xz |
prompt for seed language and error handling
- "seed" simplewallet command was only displaying seed if wallet was newly generated
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 84e134fed..be3c82001 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -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) |