wallet: fix load failure if the mms isn't usable

This commit is contained in:
moneromooo-monero 2019-03-11 16:11:48 +00:00
parent 1d1a02e9f9
commit 576116d415
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 18 additions and 1 deletions

View file

@ -9952,6 +9952,16 @@ void simple_wallet::mms_auto_config(const std::vector<std::string> &args)
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();