[#node-TxOrphanage-AddChildrenToWorkSet]
= xref:node.adoc[node]::xref:node/TxOrphanage.adoc[TxOrphanage]::AddChildrenToWorkSet
:relfileprefix: ../../
:mrdocs:

Add any orphans that list a particular tx as a parent into the from peer&apos;s work set

== Synopsis

Declared in `&lt;node&sol;txorphanage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::vector&lt;std::pair&lt;Wtxid, NodeId&gt;&gt;
AddChildrenToWorkSet(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:FastRandomContext.adoc[FastRandomContext]& rng) = 0;
----

== Return Value

The (wtxid, peer) pairs of the children added to work sets&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The parent transaction whose children should be reconsidered&period;
| *rng*
| Random context used to shuffle the selected children&period;
|===


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