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
2 changed files with 18 additions and 1 deletions
+8 -1
View File
@@ -5085,7 +5085,14 @@ void wallet2::load(const std::string& wallet_, const epee::wipeable_string& pass
MERROR("Failed to save rings, will try again next time");
}
m_message_store.read_from_file(get_multisig_wallet_state(), m_mms_file);
try
{
m_message_store.read_from_file(get_multisig_wallet_state(), m_mms_file);
}
catch (const std::exception &e)
{
MERROR("Failed to initialize MMS, it will be unusable");
}
}
//----------------------------------------------------------------------------------------------------
void wallet2::trim_hashchain()