diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-23 16:38:28 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-01-07 20:52:17 +0000 |
| commit | 0478ac6848ac11296635eb188d5f0580dbf8b5f0 (patch) | |
| tree | cf1d50eb28e5203693810363653554ea13684137 /src/cryptonote_core/blockchain.cpp | |
| parent | 049b7e9a9301d225b4a8e7f40c5e446e5911b825 (diff) | |
| download | monzero-core-0478ac6848ac11296635eb188d5f0580dbf8b5f0.tar.gz monzero-core-0478ac6848ac11296635eb188d5f0580dbf8b5f0.tar.xz monzero-core-0478ac6848ac11296635eb188d5f0580dbf8b5f0.zip | |
blockchain: allow marking "tx not found" without an exception
This is a normal occurence in many cases, and there is no need
to spam the log with those when it is.
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index a23d51126..d7704cbd6 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1894,11 +1894,11 @@ bool Blockchain::get_transactions(const t_ids_container& txs_ids, t_tx_container { try { - txs.push_back(m_db->get_tx(tx_hash)); - } - catch (const TX_DNE& e) - { - missed_txs.push_back(tx_hash); + transaction tx; + if (m_db->get_tx(tx_hash, tx)) + txs.push_back(std::move(tx)); + else + missed_txs.push_back(tx_hash); } catch (const std::exception& e) { |
