Since Bitcoin Core 31.0, a replacement is accepted only if the mempool's feerate diagram is strictly better afterward, a check performed by the function ImprovesFeerateDiagram, declared in src/policy/rbf.h. The release notes say this eliminates all known cases where replacements left the mempool worse off.
Sources and checks
T1Bitcoin Core 31.0 release notesRelease notes, says this directly
This eliminates all known cases of replacements occurring that make the mempool worse off, which was possible
Mempool, RBF rule changes, read 2026-11-20
T2Bitcoin Core doc/policy/mempool-replacements.mdDocumentation, says this directly
The feerate diagram of the mempool must be strictly improved by the replacement transaction.
Rule 6, read 2026-11-20
T1Bitcoin Core src/policy/rbf.h, ImprovesFeerateDiagramSource code, says this directly
The replacement transaction must improve the feerate diagram of the mempool.
ImprovesFeerateDiagram declaration, read 2026-11-20
bitcoin/bitcoin at f498a5a671 contains this text in src/policy/rbf.h, and still does on the default branch.
Run it yourself
git clone https://github.com/bitcoin/bitcoin && git -C bitcoin show f498a5a6718d9157b6afb85412c3462439117702:src/policy/rbf.h | grep -nF 'ImprovesFeerateDiagram(CTxMemPool::ChangeSet& changeset);'Checked at block 976,759, 20 Nov 2026, 17:28 UTC: quotes 3/3, code 1/1
History
Nothing is edited silently; every revision keeps what it replaced.
- 20 Nov 2026, 17:28 UTCblock 976,759
Published Revision 1, run 2026-11-20-seed-fees-and-mempool