[#CTxMemPool-CalculateAncestorData]
= xref:CTxMemPool.adoc[CTxMemPool]::CalculateAncestorData
:relfileprefix: ../
:mrdocs:

Compute the count, aggregate size, and aggregate fee of an entry&apos;s in&hyphen;mempool ancestors&period;

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d17a8), requires&lowbar;capability(0x7f9501b10b88), requires&lowbar;capability(0x7f950ec76d78), requires&lowbar;capability(0x7f9525ea6ac8), requires&lowbar;capability(0x7f9515096208), requires&lowbar;capability(0x7f950826a4a8), requires&lowbar;capability(0x7f94f856dbb8), requires&lowbar;capability(0x7f9513c57da8)&rsqb;&rsqb;
std::tuple&lt;size&lowbar;t, size&lowbar;t, CAmount&gt;
CalculateAncestorData(xref:CTxMemPoolEntry.adoc[CTxMemPoolEntry] const& entry) const;
----

== Return Value

A tuple of ancestor count, ancestor size, and ancestor fees&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *entry*
| The entry whose ancestor data is computed&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
