blockchain_db: add a txpool tx getter which returns existence

Avoids exception spam for the "nope, not found" case
This commit is contained in:
moneromooo-monero
2017-06-11 15:10:18 +01:00
parent e3da0ca828
commit 235df7f484
7 changed files with 31 additions and 5 deletions
+1
View File
@@ -245,6 +245,7 @@ public:
virtual bool txpool_has_tx(const crypto::hash &txid) const;
virtual void remove_txpool_tx(const crypto::hash& txid);
virtual txpool_tx_meta_t get_txpool_tx_meta(const crypto::hash& txid) const;
virtual bool get_txpool_tx_blob(const crypto::hash& txid, cryptonote::blobdata &bd) const;
virtual cryptonote::blobdata get_txpool_tx_blob(const crypto::hash& txid) const;
virtual bool for_all_txpool_txes(std::function<bool(const crypto::hash&, const txpool_tx_meta_t&, const cryptonote::blobdata*)> f, bool include_blob = false) const;