From 3dd19c4cd426c06a1dfb5d631174cb3b038f1f4c Mon Sep 17 00:00:00 2001 From: warptangent Date: Thu, 6 Nov 2014 14:36:36 -0800 Subject: prompt for seed language and error handling - "seed" simplewallet command was only displaying seed if wallet was newly generated --- src/simplewallet/simplewallet.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/simplewallet') diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 84e134fed..be3c82001 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -207,6 +207,13 @@ bool simple_wallet::viewkey(const std::vector &args/* = std::vector bool simple_wallet::seed(const std::vector &args/* = std::vector()*/) { std::string electrum_words; + + if (m_wallet->get_seed_language().empty()) + { + std::string mnemonic_language = get_mnemonic_language(); + m_wallet->set_seed_language(mnemonic_language); + } + bool success = m_wallet->get_seed(electrum_words); if (success) -- cgit v1.2.3