Replace-by-Fee (RBF) is a Bitcoin node policy that allows an unconfirmed transaction in the mempool to be replaced by a new version spending the same coins with a higher transaction fee. Its main use is fee bumping: if a payment is stuck because fees rose after it was sent, the sender can rebroadcast it with a higher fee so miners pick it up sooner. The opt-in version, in which a transaction signals that it may be replaced, was specified in BIP 125 in 2015.
Because the replacement can also send the coins somewhere else, RBF makes zero-confirmation transactions less safe and eases a double spend attack. After long debate, Bitcoin Core moved towards full RBF, treating any unconfirmed transaction as replaceable, and made it the default in version 28 in 2024. Merchants that need speed are generally advised to wait for confirmations or use the Lightning Network.
Ref 1070001264