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

Check whether we already have this gtxid in&colon; &hyphen; mempool &hyphen; orphanage &hyphen; m&lowbar;recent&lowbar;rejects &hyphen; m&lowbar;recent&lowbar;rejects&lowbar;reconsiderable (if include&lowbar;reconsiderable &equals; true) &hyphen; m&lowbar;recent&lowbar;confirmed&lowbar;transactions

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
AlreadyHaveTx(
    xref:GenTxid.adoc[GenTxid] const& gtxid,
    bool include&lowbar;reconsiderable);
----

== Return Value

True if the transaction is already known, false otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *gtxid*
| The transaction identifier to look up&period;
| *include&lowbar;reconsiderable*
| Whether to also consult the reconsiderable&hyphen;rejects filter&period;
|===


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