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

Process a received transaction and decide whether it should be validated&period;

== Synopsis

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

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

== Return Value

A pair whose bool says whether to validate the tx, with an optional package to validate instead&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nodeid*
| The peer that provided the transaction&period;
| *ptx*
| The received transaction&period;
|===


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