diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-12-02 07:25:13 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-12-02 07:25:29 +0200 |
commit | 220832b79155a25dcb0f668b4e72b40b15149e02 (patch) | |
tree | 297651294e261a7dd2753c3dbd1fa4632b8f8f8e /src/simplewallet | |
parent | Merge pull request #192 (diff) | |
parent | prompt for seed language and error handling (diff) | |
download | monero-220832b79155a25dcb0f668b4e72b40b15149e02.tar.xz |
Merge pull request #187
3dd19c4 prompt for seed language and error handling - "seed" simplewallet command was only displaying seed if wallet was newly generated (warptangent)
Diffstat (limited to 'src/simplewallet')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<std::string> &args/* = std::vector bool simple_wallet::seed(const std::vector<std::string> &args/* = std::vector<std::string>()*/) { 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) |