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

Check if a &lcub;tx, peer&rcub; exists in the orphanage&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
bool
HaveTxFromPeer(
    xref:Wtxid.adoc[Wtxid] const& wtxid,
    xref:NodeId-08.adoc[NodeId] peer) const = 0;
----

== Return Value

True if the orphan was announced by `peer,` false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wtxid*
| Witness txid of the orphan&period;
| *peer*
| The announcing peer to check for&period;
|===


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