diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-11 16:11:48 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-11 16:11:48 +0000 |
commit | 576116d415b7ea9b498168db6221ab5df6101c31 (patch) | |
tree | 58710875ba0ce2e92e3692d7a12e26e0d72e3f01 /src/simplewallet | |
parent | Merge pull request #5258 (diff) | |
download | monero-576116d415b7ea9b498168db6221ab5df6101c31.tar.xz |
wallet: fix load failure if the mms isn't usable
Diffstat (limited to 'src/simplewallet')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 8c0b300ad..cf75d57eb 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -9954,6 +9954,16 @@ bool simple_wallet::mms(const std::vector<std::string> &args) { try { + m_wallet->get_multisig_wallet_state(); + } + catch(const std::exception &e) + { + fail_msg_writer() << tr("MMS not available in this wallet"); + return true; + } + + try + { mms::message_store& ms = m_wallet->get_message_store(); if (args.size() == 0) { |