aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorOran Juice <oranjuices@hotmail.com>2014-09-27 17:04:23 +0530
committerOran Juice <oranjuices@hotmail.com>2014-09-27 17:04:23 +0530
commit91aa25e055b918d9f9525f67d93c3f5a05f53024 (patch)
treecb981c17bb1241c3a27e45de9a72db6e50c76bbf /src/simplewallet
parentThrow error when word list file is empty and quick bug fix (diff)
downloadmonero-91aa25e055b918d9f9525f67d93c3f5a05f53024.tar.xz
Informs about old style mnemonics from older wallet and provides a new one. CMakeLists.txt update.
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp10
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
{