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

`CalculateDescendants` overloads

== Synopses

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

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;


[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
xref:CTxMemPool/CalculateDescendants-06.adoc[CalculateDescendants](
    xref:CTxMemPool/txiter.adoc[txiter] it,
    xref:CTxMemPool/setEntries.adoc[setEntries]& setDescendants) const;
----

[.small]#xref:CTxMemPool/CalculateDescendants-06.adoc[_» more&period;&period;&period;_]#

Populate setDescendants with all in&hyphen;mempool descendants of the given entry&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e1b5a2f98), requires&lowbar;capability(0x7f2e2721bfa8), requires&lowbar;capability(0x7f2e421cd6b8), requires&lowbar;capability(0x7f2e2880c678), requires&lowbar;capability(0x7f2e3212fa08), requires&lowbar;capability(0x7f2e347f8098), requires&lowbar;capability(0x7f2e2b05c508), requires&lowbar;capability(0x7f2e2bee3ba8)&rsqb;&rsqb;
xref:CTxMemPool/txiter.adoc[CTxMemPool::txiter]
xref:CTxMemPool/CalculateDescendants-0d.adoc[CalculateDescendants](
    xref:CTxMemPoolEntry.adoc[CTxMemPoolEntry] const& entry,
    xref:CTxMemPool/setEntries.adoc[setEntries]& setDescendants) const;
----

[.small]#xref:CTxMemPool/CalculateDescendants-0d.adoc[_» more&period;&period;&period;_]#

== Return Value

An iterator to the entry in the mempool&period;

== 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;
| *entry*
| The transaction entry whose descendants are collected&period;
|===


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