mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
Merge pull request #2396
dbfef643
tx_pool: catch exceptions in LockedTXN dtor (moneromooo-monero)
This commit is contained in:
commit
718820cd96
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ namespace cryptonote
|
|||
LockedTXN(Blockchain &b): m_blockchain(b), m_batch(false) {
|
||||
m_batch = m_blockchain.get_db().batch_start();
|
||||
}
|
||||
~LockedTXN() { if (m_batch) { m_blockchain.get_db().batch_stop(); } }
|
||||
~LockedTXN() { try { if (m_batch) { m_blockchain.get_db().batch_stop(); } } catch (const std::exception &e) { MWARNING("LockedTXN dtor filtering exception: " << e.what()); } }
|
||||
private:
|
||||
Blockchain &m_blockchain;
|
||||
bool m_batch;
|
||||
|
|
Loading…
Reference in a new issue