aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-07 16:31:13 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-07 16:32:50 +0000
commita67b77a9eb79bd2b7a3586852ff8386114ab4d35 (patch)
tree7b8db4a37c584b9983b835b2cdfec324d5e09d26 /src/cryptonote_core/blockchain.cpp
parentMerge pull request #4969 (diff)
downloadmonero-a67b77a9eb79bd2b7a3586852ff8386114ab4d35.tar.xz
blockchain: don't propagate exception past dtor
Coverity 190660
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index bbac20eaa..965e1704b 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -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