aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorOran Juice <oranjuices@hotmail.com>2014-10-18 02:21:37 +0530
committerOran Juice <oranjuices@hotmail.com>2014-10-18 02:21:37 +0530
commit09a659edb5f77ce1879338545f388076881b4e06 (patch)
tree29d2f0baa5c4009fcbb61c60d4b9e9db229ef9ca /src/simplewallet/simplewallet.cpp
parentremoved unecessary mnemonics test (diff)
downloadmonero-09a659edb5f77ce1879338545f388076881b4e06.tar.xz
Stores seed language in wallet file. added rapidjson. Yet to test backward compatibility
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 4cb9cff21..791309f3b 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -509,8 +509,8 @@ bool simple_wallet::new_wallet(const std::string &wallet_file, const std::string
// convert rng value to electrum-style word list
std::string electrum_words;
- bool was_deprecated_wallet = (old_language == crypto::ElectrumWords::old_language_name) ||
- crypto::ElectrumWords::get_is_old_style_seed(m_electrum_seed);
+ bool was_deprecated_wallet = m_restore_deterministic_wallet && ((old_language == crypto::ElectrumWords::old_language_name) ||
+ crypto::ElectrumWords::get_is_old_style_seed(m_electrum_seed));
std::string mnemonic_language = old_language;
// Ask for seed language if it is not a wallet restore or if it was a deprecated wallet