aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-06-11 15:10:18 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-06-11 15:36:48 +0100
commit235df7f4848fb597739c50e3a31007ae77f008f1 (patch)
tree4c441bb96f27a3fd7d148c0b854a7c1a72af906b /src/cryptonote_core/tx_pool.cpp
parentMerge pull request #2059 (diff)
downloadmonero-235df7f4848fb597739c50e3a31007ae77f008f1.tar.xz
blockchain_db: add a txpool tx getter which returns existence
Avoids exception spam for the "nope, not found" case
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r--src/cryptonote_core/tx_pool.cpp3
1 files changed, 1 insertions, 2 deletions
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)
{