[#node-TxDownloadManagerImpl-Find1P1CPackage]
= xref:node.adoc[node]::xref:node/TxDownloadManagerImpl.adoc[TxDownloadManagerImpl]::Find1P1CPackage
:relfileprefix: ../../
:mrdocs:

Look for a child of this transaction in the orphanage to form a 1&hyphen;parent&hyphen;1&hyphen;child package, skipping any combinations that have already been tried&period; Return the resulting package along with the senders of its respective transactions, or std&colon;&colon;nullopt if no package is found&period;

== Synopsis

Declared in `&lt;node&sol;txdownloadman&lowbar;impl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;PackageToValidate&gt;
Find1P1CPackage(
    xref:CTransactionRef.adoc[CTransactionRef] const& ptx,
    xref:NodeId-08.adoc[NodeId] nodeid);
----

== Return Value

The formed package, or std&colon;&colon;nullopt if no untried package is found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptx*
| The parent transaction to find a child for&period;
| *nodeid*
| The peer that provided `ptx&period;`
|===


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