aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2014-12-02 07:25:13 +0200
committerRiccardo Spagni <ric@spagni.net>2014-12-02 07:25:29 +0200
commit220832b79155a25dcb0f668b4e72b40b15149e02 (patch)
tree297651294e261a7dd2753c3dbd1fa4632b8f8f8e /src/simplewallet
parentMerge pull request #192 (diff)
parentprompt for seed language and error handling (diff)
downloadmonero-220832b79155a25dcb0f668b4e72b40b15149e02.tar.xz
Merge pull request #187
3dd19c4 prompt for seed language and error handling - "seed" simplewallet command was only displaying seed if wallet was newly generated (warptangent)
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)