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

Get all children that spend from this tx and were received from nodeid&period; Sorted reconsiderable before non&hyphen;reconsiderable, then from most recent to least recent&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::vector&lt;CTransactionRef&gt;
GetChildrenFromSamePeer(
    xref:CTransactionRef.adoc[CTransactionRef] const& parent,
    xref:NodeId-08.adoc[NodeId] nodeid) const = 0;
----

== Return Value

The matching child transactions, sorted as described&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *parent*
| The parent transaction whose children to collect&period;
| *nodeid*
| The peer the children must have been received from&period;
|===


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