diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-03-21 14:51:30 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-03-21 14:51:30 +0200 |
| commit | dcfd5a88927f6a4a59c5fb5f7ebec9484cdf32e0 (patch) | |
| tree | c1e5efe5bb3ff2dc1bcf8e67374bbb0e8a71d740 /src/simplewallet | |
| parent | 7329a27e1444e34599d3201a339509538314e7e5 (diff) | |
| parent | 576116d415b7ea9b498168db6221ab5df6101c31 (diff) | |
| download | monzero-core-dcfd5a88927f6a4a59c5fb5f7ebec9484cdf32e0.tar.gz monzero-core-dcfd5a88927f6a4a59c5fb5f7ebec9484cdf32e0.tar.xz monzero-core-dcfd5a88927f6a4a59c5fb5f7ebec9484cdf32e0.zip | |
Merge pull request #5266
576116d4 wallet: fix load failure if the mms isn't usable (moneromooo-monero)
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 07900858e..f390b7675 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -10009,6 +10009,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) { |
