aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorOran Juice <oranjuices@hotmail.com>2014-09-26 23:34:35 +0530
committerOran Juice <oranjuices@hotmail.com>2014-09-26 23:34:35 +0530
commit3c0e87e1b604a846bf6a16c9eb5b45a05548541a (patch)
treea791cec96a89bf7efd017f96e78d0d1cb1344df3 /src/simplewallet/simplewallet.cpp
parentAccepts seed language choice from user. (diff)
downloadmonero-3c0e87e1b604a846bf6a16c9eb5b45a05548541a.tar.xz
Supports wallet restoration
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index c9f4d6ec8..b368da01a 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -489,11 +489,13 @@ bool simple_wallet::new_wallet(const string &wallet_file, const std::string& pas
// convert rng value to electrum-style word list
std::string electrum_words;
- std::string mnemonic_language = get_mnemonic_language();
- std::cout << "(" << (mnemonic_language) << ")" << std::endl;
-
- crypto::ElectrumWords::init(mnemonic_language);
+ if (m_restore_deterministic_wallet)
+ {
+ // Ask for language only if it not a wallet restore.
+ std::string mnemonic_language = get_mnemonic_language();
+ crypto::ElectrumWords::init(mnemonic_language);
+ }
crypto::ElectrumWords::bytes_to_words(recovery_val, electrum_words);
std::string print_electrum = "";