From 576116d415b7ea9b498168db6221ab5df6101c31 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 11 Mar 2019 16:11:48 +0000 Subject: wallet: fix load failure if the mms isn't usable --- src/simplewallet/simplewallet.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/simplewallet/simplewallet.cpp') 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 @@ -9952,6 +9952,16 @@ void simple_wallet::mms_auto_config(const std::vector &args) bool simple_wallet::mms(const std::vector &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(); -- cgit v1.2.3