catching cryptonote::TX_DNE added to get_tx

This commit is contained in:
moneroexamples 2016-09-16 13:12:34 +08:00
parent c3bb5ac55c
commit 7307c33fba

View file

@ -147,9 +147,14 @@ namespace xmreg
// get transaction with given hash
tx = m_blockchain_storage.get_db().get_tx(tx_hash);
}
catch (const exception& e)
catch (const cryptonote::TX_DNE & e)
{
cerr << e.what() << endl;
cerr << "MicroCore::get_tx cryptonote::TX_DNE: " << e.what() << endl;
return false;
}
catch (const std::exception& e)
{
cerr << "MicroCore::get_tx: " << e.what() << endl;
return false;
}