Calculate the ancestor and cluster 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.
Declared in <txmempool.h>
void
GetTransactionAncestry(
Txid const& txid,
size_t& ancestors,
size_t& cluster_count,
size_t* ancestorsize = nullptr,
CAmount* ancestorfees = nullptr) const;
| Name | Description |
|---|---|
| txid | The transaction to query. |
| ancestors | Set to the ancestor count (including the transaction itself). |
| cluster_count | Set to the size of the transaction's cluster. |
| ancestorsize | If non-null, set to the aggregate ancestor size. |
| ancestorfees | If non-null, set to the aggregate ancestor fees. |