[#EntriesAndTxidsDisjoint]
= EntriesAndTxidsDisjoint
:mrdocs:

Check the intersection between two sets of transactions (a set of mempool entries and a set of txids) to make sure they are disjoint&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;std::string&gt;
EntriesAndTxidsDisjoint(
    xref:CTxMemPool/setEntries.adoc[CTxMemPool::setEntries] const& ancestors,
    std::set&lt;Txid&gt; const& direct&lowbar;conflicts,
    xref:Txid.adoc[Txid] const& txid);
----

== Return Value

error message if the sets intersect, std&colon;&colon;nullopt if they are disjoint&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ancestors* [in]
| Set of mempool entries corresponding to ancestors of the replacement transactions&period;
| *direct&lowbar;conflicts* [in]
| Set of txids corresponding to the mempool conflicts (candidates to be replaced)&period;
| *txid* [in]
| Transaction ID, included in the error message if violation occurs&period;
|===


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