Bitcoin Full-RBF vs Opt-In RBF: Replacement Policy and Signaling
A Bitcoin transaction can be valid under consensus rules yet compete with another transaction spending the same inputs. Replace-by-fee (RBF) describes mempool policies that allow a node to replace an unconfirmed transaction with a conflicting one under specific conditions. It is not a new kind of on-chain transaction and does not reverse confirmed payments.
Opt-in RBF and BIP125
BIP125 described an opt-in relay policy: a transaction signals replaceability if at least one input has an nSequence below 0xfffffffe. A descendant can also inherit signaling from an unconfirmed ancestor. This signal communicates replaceability to nodes implementing the policy; it is not a guarantee that every node will accept a replacement.
BIP125's historical replacement rules included higher absolute fee, additional incremental relay fee, restrictions on introducing new unconfirmed inputs, and limits on the number of evicted transactions. These are mempool-policy conditions, not block-validity rules. Wallet software must evaluate the actual node's configured policy instead of assuming every implementation has identical defaults.
What full-RBF changes
Full-RBF policy permits consideration of replacements even when the original transaction did not signal BIP125 opt-in. A node may still reject a proposed replacement for insufficient fees, excessive eviction, policy violations, or other conditions. Full-RBF does not mean that every conflicting transaction is automatically accepted.
Different nodes can maintain different mempools because of propagation timing, configuration, transaction ancestry, and policy. One node reporting a transaction as accepted does not imply network-wide acceptance or miner inclusion. Conversely, a transaction absent from one mempool may still be known elsewhere.
The distinction from consensus
A miner cannot put two conflicting spends of the same output into the same valid chain history. Bitcoin consensus checks that each input spends an available UTXO. If a valid block confirms one of two conflicting unconfirmed transactions, the other cannot subsequently confirm on that chain unless the chain history changes in a reorganization.
RBF therefore changes the economics and propagation of unconfirmed transactions, not the rule that confirmed chain history must have consistent UTXO spends. Merchant software should not treat an unconfirmed payment as irreversible merely because its sequence numbers do not opt in to BIP125.
Developer considerations
Record transaction IDs, input outpoints, fees, feerates, and observed conflicts. Separate a payment intent from a particular transaction ID: a legitimate fee bump can change the TXID while preserving the intended recipient output, but a malicious conflicting transaction can redirect value. Verify the actual outputs of any replacement before crediting a payment.
For applications that require final settlement, use an explicit confirmation policy and account for chain reorganizations. For applications that intentionally accept zero-confirmation risk, document that risk independently of RBF signaling.
Primary references
BIP125 — Opt-in Full Replace-by-Fee Signaling: https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki
Bitcoin Core documentation — Mempool and transaction RPCs: https://bitcoincore.org/en/doc/
