[#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(0x7f95135d2fa8), requires&lowbar;capability(0x7f9501b12388), requires&lowbar;capability(0x7f950ec78578), requires&lowbar;capability(0x7f9525ea82c8), requires&lowbar;capability(0x7f9515097a08), requires&lowbar;capability(0x7f950826bca8), requires&lowbar;capability(0x7f94f856f3b8), requires&lowbar;capability(0x7f9513c595a8)&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]#
