[#CTxMemPool-GetConflictTx]
= xref:CTxMemPool.adoc[CTxMemPool]::GetConflictTx
:relfileprefix: ../
:mrdocs:

Get the transaction in the pool that spends the same prevout

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d2678), requires&lowbar;capability(0x7f9501b11a58), requires&lowbar;capability(0x7f950ec77c48), requires&lowbar;capability(0x7f9525ea7998), requires&lowbar;capability(0x7f95150970d8), requires&lowbar;capability(0x7f950826b378), requires&lowbar;capability(0x7f94f856ea88), requires&lowbar;capability(0x7f9513c58c78)&rsqb;&rsqb;
xref:CTransaction.adoc[CTransaction] const*
GetConflictTx(xref:COutPoint.adoc[COutPoint] const& prevout) const;
----

== Return Value

The conflicting transaction, or nullptr if none spends the outpoint&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *prevout*
| The outpoint to look up&period;
|===


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