aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
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 = "";