aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2019-10-18 04:02:50 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2021-08-01 23:38:47 +0000
commit3f77dfdaf0f0bfe0c4662a616d6943f31bdd5bf4 (patch)
treea2e4fab1809e89366d2355404229a384514c2303 /src/txmempool.h
parent42af9596ce85a541988abee54eed8a9b271a46a1 (diff)
downloadbitcoin-3f77dfdaf0f0bfe0c4662a616d6943f31bdd5bf4.tar.xz
Expose ancestorsize and ancestorfees via getTransactionAncestry
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index ae4b16d377..ea1d62d32d 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -706,8 +706,10 @@ public:
/**
* Calculate the ancestor and descendant count for the given transaction.
* The counts include the transaction itself.
+ * When ancestors is non-zero (ie, the transaction itself is in the mempool),
+ * ancestorsize and ancestorfees will also be set to the appropriate values.
*/
- void GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) const;
+ void GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants, size_t* ancestorsize = nullptr, CAmount* ancestorfees = nullptr) const;
/** @returns true if the mempool is fully loaded */
bool IsLoaded() const;