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

Calculate the in&hyphen;mempool ancestors of a staged transaction, caching the result&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CTxMemPool/setEntries.adoc[CTxMemPool::setEntries]
CalculateMemPoolAncestors(xref:CTxMemPool/ChangeSet/TxHandle.adoc[TxHandle] tx);
----

== Return Value

The in&hyphen;mempool ancestors, excluding transactions in the changeset itself&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Handle to the staged transaction&period;
|===


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