Check the intersection between two sets of transactions (a set of mempool entries and a set of txids) to make sure they are disjoint.
Declared in <policy/rbf.h>
std::optional<std::string>
EntriesAndTxidsDisjoint(
CTxMemPool::setEntries const& ancestors,
std::set<Txid> const& direct_conflicts,
Txid const& txid);
error message if the sets intersect, std::nullopt if they are disjoint.
| Name | Description |
|---|---|
| ancestors [in] | Set of mempool entries corresponding to ancestors of the replacement transactions. |
| direct_conflicts [in] | Set of txids corresponding to the mempool conflicts (candidates to be replaced). |
| txid [in] | Transaction ID, included in the error message if violation occurs. |