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/blockchain_db/blockchain_db.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/blockchain_db/blockchain_db.h') 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 @@ -1313,6 +1313,16 @@ public: */ virtual txpool_tx_meta_t get_txpool_tx_meta(const crypto::hash& txid) const = 0; + /** + * @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 * -- cgit v1.2.3