aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2014-11-06 14:36:36 -0800
committerwarptangent <warptangent@inbox.com>2014-12-01 14:36:24 -0800
commit3dd19c4cd426c06a1dfb5d631174cb3b038f1f4c (patch)
tree297651294e261a7dd2753c3dbd1fa4632b8f8f8e /src/simplewallet
parentMerge pull request #192 (diff)
downloadmonero-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')
-rw-r--r--src/simplewallet/simplewallet.cpp7
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)