aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.h
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/blockchain_db/blockchain_db.h
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/blockchain_db/blockchain_db.h')
-rw-r--r--src/blockchain_db/blockchain_db.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h
index b0a3d84e1..27e63801d 100644
--- a/src/blockchain_db/blockchain_db.h
+++ b/src/blockchain_db/blockchain_db.h
@@ -1317,6 +1317,16 @@ public:
* @brief get a txpool transaction's blob
*
* @param txid the transaction id of the transation to lookup
+ * @param bd the blob to return
+ *
+ * @return true if the txid was in the txpool, false otherwise
+ */
+ virtual bool get_txpool_tx_blob(const crypto::hash& txid, cryptonote::blobdata &bd) const = 0;
+
+ /**
+ * @brief get a txpool transaction's blob
+ *
+ * @param txid the transaction id of the transation to lookup
*
* @return the blob for that transaction
*/