Also covering BIP125 and Opt-in Replace-by-Fee
Replace-By-Fee (RBF) is a node policy that allows an unconfirmed transaction in a mempool to be replaced with a different transaction that spends at least one of the same inputs and which pays a higher transaction fee.
Different node software can use different RBF rules, so there have been several variations. The most widely-used form of RBF today is BIP125 opt-in RBF as implemented in Bitcoin Core 0.12.0 and subsequent versions; this allows the creator of a transaction to signal that they’re willing to allow it to be replaced by a higher-paying version. An alternative form of RBF is full-RBF that allows any transaction to be replaced whether or not it signals BIP125 replacability.
BIP125 requires a replacement transaction to pay both higher feerate (BTC/vbyte) and a higher absolute fee (total BTC). This can make multiparty transactions that want to use RBF vulnerable to transaction pinning attacks, and so an occasional discussion topic is proposals to allow RBF to operate solely on a feerate basis.
Primary code and documentation
Optech newsletter and website mentions
- 2019-08-20 Compatibility matrix—Replace by Fee
- 2019-06-26 Bitcoin Core removes
- 2019-06-19 LND adds support for RBF fee bumping
- 2019-06-12 Proposal to override some BIP125 RBF conditions
- 2019-02-11 RBF in the wild (survey of RBF usage)
- 2018-12-28 2018 year-in-review: transaction statistics