Merge pull request #5048

a67b77a9 blockchain: don't propagate exception past dtor (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2019-01-18 19:00:47 +02:00
commit 54eb3318e2
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ Blockchain::Blockchain(tx_memory_pool& tx_pool) :
//------------------------------------------------------------------
Blockchain::~Blockchain()
{
deinit();
try { deinit(); }
catch (const std::exception &e) { /* ignore */ }
}
//------------------------------------------------------------------
bool Blockchain::have_tx(const crypto::hash &id) const