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

Add a new orphan transaction

== Synopsis

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

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

== Return Value

True if the orphan was newly added, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The orphan transaction to add&period;
| *peer*
| The peer announcing the orphan&period;
|===


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