[#CTxMemPool-CalculateAncestorData] = xref:CTxMemPool.adoc[CTxMemPool]::CalculateAncestorData :relfileprefix: ../ :mrdocs: Compute the count, aggregate size, and aggregate fee of an entry's in‐mempool ancestors. == Synopsis Declared in `<txmempool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7ff37b41f0a8), requires_capability(0x7ff376fd6a58), requires_capability(0x7ff38def5c78), requires_capability(0x7ff3640f6c88), requires_capability(0x7ff3920f6f78), requires_capability(0x7ff37f5c9098), requires_capability(0x7ff37d010318), requires_capability(0x7ff374c13b28)]] std::tuple<size_t, size_t, CAmount> CalculateAncestorData(xref:CTxMemPoolEntry.adoc[CTxMemPoolEntry] const& entry) const; ---- == Return Value A tuple of ancestor count, ancestor size, and ancestor fees. == Parameters [cols="1,4"] |=== | Name| Description | *entry* | The entry whose ancestor data is computed. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#