Skip to content

Commit adf4ddf

Browse files
committed
Bugfix: policy/rbf: Recognise "too many potential replacements" string in ignore_rejects
1 parent b812959 commit adf4ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/policy/rbf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ std::optional<std::string> GetEntriesForConflicts(const CTransaction& tx,
7272
// entries from the mempool. This potentially overestimates the number of actual
7373
// descendants (i.e. if multiple conflicts share a descendant, it will be counted multiple
7474
// times), but we just want to be conservative to avoid doing too much work.
75-
if (nConflictingCount > MAX_REPLACEMENT_CANDIDATES && !ignore_rejects.count("too-many-replacements")) {
75+
if (nConflictingCount > MAX_REPLACEMENT_CANDIDATES && !ignore_rejects.count("too-many-replacements") && !ignore_rejects.count("too many potential replacements")) {
7676
return strprintf("rejecting replacement %s; too many potential replacements (%d > %d)\n",
7777
txid.ToString(),
7878
nConflictingCount,

0 commit comments

Comments
 (0)