diff options
author | Oran Juice <oranjuices@hotmail.com> | 2014-10-18 02:21:37 +0530 |
---|---|---|
committer | Oran Juice <oranjuices@hotmail.com> | 2014-10-18 02:21:37 +0530 |
commit | 09a659edb5f77ce1879338545f388076881b4e06 (patch) | |
tree | 29d2f0baa5c4009fcbb61c60d4b9e9db229ef9ca /src/simplewallet/simplewallet.cpp | |
parent | removed unecessary mnemonics test (diff) | |
download | monero-09a659edb5f77ce1879338545f388076881b4e06.tar.xz |
Stores seed language in wallet file. added rapidjson. Yet to test backward compatibility
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 4 |
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 |