aboutsummaryrefslogtreecommitdiff
path: root/src/index/txindex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/index/txindex.h')
-rw-r--r--src/index/txindex.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/index/txindex.h b/src/index/txindex.h
index 41199f0b3f..ac746de05b 100644
--- a/src/index/txindex.h
+++ b/src/index/txindex.h
@@ -6,6 +6,7 @@
#define BITCOIN_INDEX_TXINDEX_H
#include <primitives/block.h>
+#include <primitives/transaction.h>
#include <threadinterrupt.h>
#include <txdb.h>
#include <uint256.h>
@@ -69,8 +70,13 @@ public:
/// up from far behind, this method does not block and immediately returns false.
bool BlockUntilSyncedToCurrentChain();
- /// Look up the on-disk location of a transaction by hash.
- bool FindTx(const uint256& txid, CDiskTxPos& pos) const;
+ /// Look up a transaction by hash.
+ ///
+ /// @param[in] tx_hash The hash of the transaction to be returned.
+ /// @param[out] block_hash The hash of the block the transaction is found in.
+ /// @param[out] tx The transaction itself.
+ /// @return true if transaction is found, false otherwise
+ bool FindTx(const uint256& tx_hash, uint256& block_hash, CTransactionRef& tx) const;
void Interrupt();