[#GetEntriesForConflicts]
= GetEntriesForConflicts
:mrdocs:

Get all descendants of iters&lowbar;conflicting&period; Checks that there are no more than MAX&lowbar;REPLACEMENT&lowbar;CANDIDATES distinct clusters affected&period;

== Synopsis

Declared in `&lt;policy&sol;rbf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95131d8568)&rsqb;&rsqb;
std::optional&lt;std::string&gt;
GetEntriesForConflicts(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:CTxMemPool.adoc[CTxMemPool]& pool,
    xref:CTxMemPool/setEntries.adoc[CTxMemPool::setEntries] const& iters&lowbar;conflicting,
    xref:CTxMemPool/setEntries.adoc[CTxMemPool::setEntries]& all&lowbar;conflicts);
----

== Return Value

an error message if the number of affected clusters would exceed MAX&lowbar;REPLACEMENT&lowbar;CANDIDATES, std&colon;&colon;nullopt otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx* [in]
| The replacement transaction being evaluated&period;
| *pool* [in]
| The mempool searched for conflicting entries&period;
| *iters&lowbar;conflicting* [in]
| The set of iterators to mempool entries&period;
| *all&lowbar;conflicts* [out]
| Populated with all the mempool entries that would be replaced, which includes iters&lowbar;conflicting and all entries&apos; descendants&period; Not cleared at the start&semi; any existing mempool entries will remain in the set&period;
|===


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