From 0478ac6848ac11296635eb188d5f0580dbf8b5f0 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 23 Dec 2016 16:38:28 +0000 Subject: blockchain: allow marking "tx not found" without an exception This is a normal occurence in many cases, and there is no need to spam the log with those when it is. --- src/blockchain_db/blockchain_db.h | 14 ++++++++++++++ 1 file changed, 14 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 91c388de6..b39cb1801 100644 --- a/src/blockchain_db/blockchain_db.h +++ b/src/blockchain_db/blockchain_db.h @@ -1019,6 +1019,20 @@ public: */ virtual transaction get_tx(const crypto::hash& h) const = 0; + /** + * @brief fetches the transaction with the given hash + * + * The subclass should return the transaction stored which has the given + * hash. + * + * If the transaction does not exist, the subclass should return false. + * + * @param h the hash to look for + * + * @return true iff the transaction was found + */ + virtual bool get_tx(const crypto::hash& h, transaction &tx) const = 0; + /** * @brief fetches the total number of transactions ever * -- cgit v1.2.3