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

Consider adding this tx hash to txrequest&period; Should be called whenever a new inv has been received&period; Also called internally when a transaction is missing parents so that we can request them&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
AddTxAnnouncement(
    xref:NodeId-08.adoc[NodeId] peer,
    xref:GenTxid.adoc[GenTxid] const& gtxid,
    std::chrono::microseconds now);
----

== Return Value

True if the inv was dropped because we already have the tx, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *peer*
| The peer announcing the transaction&period;
| *gtxid*
| The announced transaction identifier&period;
| *now*
| The current time, used to schedule request delays&period;
|===


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