Changeset View
Changeset View
Standalone View
Standalone View
src/index/txindex.h
Show All 40 Lines | public: | ||||
/// Look up a transaction by identifier. | /// Look up a transaction by identifier. | ||||
/// | /// | ||||
/// @param[in] txid The ID of the transaction to be returned. | /// @param[in] txid The ID of the transaction to be returned. | ||||
/// @param[out] block_hash The hash of the block the transaction is found | /// @param[out] block_hash The hash of the block the transaction is found | ||||
/// in. | /// in. | ||||
/// @param[out] tx The transaction itself. | /// @param[out] tx The transaction itself. | ||||
/// @return true if transaction is found, false otherwise | /// @return true if transaction is found, false otherwise | ||||
bool FindTx(const TxId &txid, uint256 &block_hash, | bool FindTx(const TxId &txid, BlockHash &block_hash, | ||||
CTransactionRef &tx) const; | CTransactionRef &tx) const; | ||||
}; | }; | ||||
/// The global transaction index, used in GetTransaction. May be null. | /// The global transaction index, used in GetTransaction. May be null. | ||||
extern std::unique_ptr<TxIndex> g_txindex; | extern std::unique_ptr<TxIndex> g_txindex; | ||||
#endif // BITCOIN_INDEX_TXINDEX_H | #endif // BITCOIN_INDEX_TXINDEX_H |