From cbbf96cc43c8e5459aa9c90f2bd516f1b5235fc5 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 1 Aug 2023 18:58:30 +0000 Subject: [PATCH] Bugfix: policy/rbf: Recognise "too many potential replacements" string in ignore_rejects --- src/policy/rbf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/policy/rbf.cpp b/src/policy/rbf.cpp index 0f40797fe6..bbd14568d6 100644 --- a/src/policy/rbf.cpp +++ b/src/policy/rbf.cpp @@ -69,7 +69,7 @@ std::optional GetEntriesForConflicts(const CTransaction& tx, // entries from the mempool. This potentially overestimates the number of actual // descendants (i.e. if multiple conflicts share a descendant, it will be counted multiple // times), but we just want to be conservative to avoid doing too much work. - if (nConflictingCount > MAX_REPLACEMENT_CANDIDATES && !ignore_rejects.count("too-many-replacements")) { + if (nConflictingCount > MAX_REPLACEMENT_CANDIDATES && !ignore_rejects.count("too-many-replacements") && !ignore_rejects.count("too many potential replacements")) { return strprintf("rejecting replacement %s; too many potential replacements (%d > %d)\n", txid.ToString(), nConflictingCount,