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

Populate setDescendants with all in&hyphen;mempool descendants of given transaction&period; Assumes that setDescendants includes all in&hyphen;mempool descendants of anything already in it&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1b5a2ed8), requires&lowbar;capability(0x7f2e2721bee8), requires&lowbar;capability(0x7f2e421cd5f8), requires&lowbar;capability(0x7f2e2880c5b8), requires&lowbar;capability(0x7f2e3212f948), requires&lowbar;capability(0x7f2e347f7fd8), requires&lowbar;capability(0x7f2e2b05c448), requires&lowbar;capability(0x7f2e2bee3ae8)&rsqb;&rsqb;
void
CalculateDescendants(
    xref:CTxMemPool/txiter.adoc[txiter] it,
    xref:CTxMemPool/setEntries.adoc[setEntries]& setDescendants) const;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *it*
| Iterator to the transaction whose descendants are collected&period;
| *setDescendants*
| The set that is populated with the descendants&period;
|===


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