From 235df7f4848fb597739c50e3a31007ae77f008f1 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 11 Jun 2017 15:10:18 +0100 Subject: blockchain_db: add a txpool tx getter which returns existence Avoids exception spam for the "nope, not found" case --- src/cryptonote_core/tx_pool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cryptonote_core/tx_pool.cpp') diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index 515918cfa..f1d980911 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -627,8 +627,7 @@ namespace cryptonote CRITICAL_REGION_LOCAL1(m_blockchain); try { - txblob = m_blockchain.get_txpool_tx_blob(id); - return true; + return m_blockchain.get_txpool_tx_blob(id, txblob); } catch (const std::exception &e) { -- cgit v1.2.3