[#node-TxDownloadManager-ReceivedTx] = xref:node.adoc[node]::xref:node/TxDownloadManager.adoc[TxDownloadManager]::ReceivedTx :relfileprefix: ../../ :mrdocs: Marks a tx as ReceivedResponse in txrequest and checks whether AlreadyHaveTx. Return a bool indicating whether this tx should be validated. If false, optionally, a PackageToValidate. == Synopsis Declared in `<node/txdownloadman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::pair<bool, std::optional<PackageToValidate>> 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. == Parameters [cols="1,4"] |=== | Name| Description | *nodeid* | The peer that provided the transaction. | *ptx* | The received transaction. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#