diff options
| author | Oran Juice <oranjuices@hotmail.com> | 2014-09-27 17:04:23 +0530 |
|---|---|---|
| committer | Oran Juice <oranjuices@hotmail.com> | 2014-09-27 17:04:23 +0530 |
| commit | 91aa25e055b918d9f9525f67d93c3f5a05f53024 (patch) | |
| tree | cb981c17bb1241c3a27e45de9a72db6e50c76bbf /src/simplewallet/simplewallet.cpp | |
| parent | 262e155bab392783b4b282e3abc2d0934e196b56 (diff) | |
| download | monzero-core-91aa25e055b918d9f9525f67d93c3f5a05f53024.tar.gz monzero-core-91aa25e055b918d9f9525f67d93c3f5a05f53024.tar.xz monzero-core-91aa25e055b918d9f9525f67d93c3f5a05f53024.zip | |
Informs about old style mnemonics from older wallet and provides a new one. CMakeLists.txt update.
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index a222e7827..2ede2f20f 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -498,9 +498,15 @@ 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; - if (!m_restore_deterministic_wallet) + if (!m_restore_deterministic_wallet || crypto::ElectrumWords::get_is_old_style_mnemonics()) { - // Ask for language only if it not a wallet restore. + if (crypto::ElectrumWords::get_is_old_style_mnemonics()) + { + message_writer(epee::log_space::console_color_green, false) << "\nYou have been using " << + "a deprecated word list file. Please use the new seed that we provide.\n"; + } + // Ask for language if it is not a wallet restore or if the old version of the wallet + // had given the user an old style word list. std::string mnemonic_language = get_mnemonic_language(); try { |
