aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/blockchain_db.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-01-08 16:33:41 -0800
committerRiccardo Spagni <ric@spagni.net>2017-01-08 16:33:41 -0800
commit23cf9633325693b363a608f3021270231640d848 (patch)
treeb8c45ab85881215e43376e0935e74fe18bd67ec8 /src/blockchain_db/blockchain_db.h
parentMerge pull request #1491 (diff)
parentblockchain: allow marking "tx not found" without an exception (diff)
downloadmonero-23cf9633325693b363a608f3021270231640d848.tar.xz
Merge pull request #1493
0478ac68 blockchain: allow marking "tx not found" without an exception (moneromooo-monero)
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/blockchain_db.h14
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