Get all descendants of iters_conflicting. Checks that there are no more than MAX_REPLACEMENT_CANDIDATES distinct clusters affected.

Synopsis

Declared in <policy/rbf.h>

[[requires_capability(0x7f2e3130f6b8)]]
std::optional<std::string>
GetEntriesForConflicts(
    CTransaction const& tx,
    CTxMemPool& pool,
    CTxMemPool::setEntries const& iters_conflicting,
    CTxMemPool::setEntries& all_conflicts);

Return Value

an error message if the number of affected clusters would exceed MAX_REPLACEMENT_CANDIDATES, std::nullopt otherwise

Parameters

Name

Description

tx [in]

The replacement transaction being evaluated.

pool [in]

The mempool searched for conflicting entries.

iters_conflicting [in]

The set of iterators to mempool entries.

all_conflicts [out]

Populated with all the mempool entries that would be replaced, which includes iters_conflicting and all entries' descendants. Not cleared at the start; any existing mempool entries will remain in the set.

Created with MrDocs