A transaction conflicts with an in-mempool transaction ("directly conflicting transaction") if they spend one or more of the same inputs. A transaction may conflict with multiple in-mempool transactions.
A transaction ("replacement transaction") may replace its directly conflicting transactions and their in-mempool descendants (together, "original transactions") if, in addition to passing all other consensus and policy rules, each of the following conditions are met:
transactions.
Rationale: Only requiring the replacement transaction to have a higher feerate could allow an attacker to bypass node minimum relay feerate requirements and cause the network to repeatedly relay slightly smaller replacement transactions without adding any more fees. Additionally, if any of the original transactions would be included in the next block assembled by an economically rational miner, a replacement policy allowing the replacement transaction to decrease the absolute fees in the next block would be incentive-incompatible.
sum paid by the original transactions) pays for the replacement transaction's bandwidth at or above the rate set by the node's incremental relay feerate. For example, if the incremental relay feerate is 0.1 satoshi/vB and the replacement transaction is 500 virtual bytes total, then the replacement pays a fee at least 50 satoshis higher than the sum of the original transactions.
Rationale: Try to prevent DoS attacks where an attacker causes the network to repeatedly relay transactions each paying a tiny additional amount in fees, e.g. just 1 satoshi.
Rationale: Limit CPU usage required to update the mempool for so many transactions being removed at once.
Rationale: This ensures that block fees in all future blocks will go up after the replacement (ignoring tail effects at the end of a block).
v0.12.0 (PR 6871).
Bitcoin Core implementation.
-minrelaytxfee and configurable using -incrementalrelayfee
(PR #9380).
#11605](https://github.com/bitcoin/bitcoin/pull/11605)).
#25353](https://github.com/bitcoin/bitcoin/pull/25353)).