[#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(0x7f95135d17a8), requires_capability(0x7f9501b10b88), requires_capability(0x7f950ec76d78), requires_capability(0x7f9525ea6ac8), requires_capability(0x7f9515096208), requires_capability(0x7f950826a4a8), requires_capability(0x7f94f856dbb8), requires_capability(0x7f9513c57da8)]] 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]#