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

If this peer is an orphan resolution candidate for this transaction, treat the unique&lowbar;parents as announced by this peer&semi; add them as new invs to m&lowbar;txrequest&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
MaybeAddOrphanResolutionCandidate(
    std::vector&lt;Txid&gt; const& unique&lowbar;parents,
    xref:Wtxid.adoc[Wtxid] const& wtxid,
    xref:NodeId-08.adoc[NodeId] nodeid,
    std::chrono::microseconds now);
----

== Return Value

whether this transaction was a valid orphan resolution candidate&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *unique&lowbar;parents*
| The deduplicated parent txids of the orphan&period;
| *wtxid*
| Witness txid of the orphan transaction&period;
| *nodeid*
| The peer being considered as a resolution candidate&period;
| *now*
| The current time, used to schedule request delays&period;
|===


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