diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-23 16:38:28 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-01-07 20:52:17 +0000 |
commit | 0478ac6848ac11296635eb188d5f0580dbf8b5f0 (patch) | |
tree | cf1d50eb28e5203693810363653554ea13684137 /src/blockchain_db/blockchain_db.h | |
parent | Merge pull request #1483 (diff) | |
download | monero-0478ac6848ac11296635eb188d5f0580dbf8b5f0.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_db/blockchain_db.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 @@ -1020,6 +1020,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 * * The subclass should return a count of all the transactions from |