[#TxRequestTracker-GetCandidatePeers]
= xref:TxRequestTracker.adoc[TxRequestTracker]::GetCandidatePeers
:relfileprefix: ../
:mrdocs:

For some txhash (txid or wtxid), finds all peers with non&hyphen;COMPLETED announcements and appends them to result&lowbar;peers&period; Does not try to ensure that result&lowbar;peers contains no duplicates&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
GetCandidatePeers(
    xref:uint256.adoc[uint256] const& txhash,
    std::vector&lt;NodeId&gt;& result&lowbar;peers) const;
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txhash*
| Transaction hash to look up&period;
| *result&lowbar;peers*
| Vector the matching peers are appended to&period;
|===


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