mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-04 08:22:36 +02:00
Bugfix: policy/rbf: Recognise "too many potential replacements" string in ignore_rejects
This commit is contained in:
parent
2851e0f83e
commit
cbbf96cc43
@ -69,7 +69,7 @@ std::optional<std::string> GetEntriesForConflicts(const CTransaction& tx,
|
|||||||
// entries from the mempool. This potentially overestimates the number of actual
|
// 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
|
// 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.
|
// 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",
|
return strprintf("rejecting replacement %s; too many potential replacements (%d > %d)\n",
|
||||||
txid.ToString(),
|
txid.ToString(),
|
||||||
nConflictingCount,
|
nConflictingCount,
|
||||||
|
Loading…
Reference in New Issue
Block a user