With Bitcoin fees climbing, some transactions may end up getting stuck in the mempool, due to an influx of transactions on the network and being surpassed by those using higher fees.
This means that some customers' transactions may only confirm many hours or even days later, if they were sent with a now-comparatively low fee.
To be able to bump the fees on future transactions, you can enable replace-by-fee (RBF), a Bitcoin feature which allows you to rebroadcast an unconfirmed transaction with a higher fee to better match the current fee environment and confirm faster.
Enabling RBF transactions
To enable RBF on your server's Bitcoin node, run the following command in your server:
curl -sS https://raw.githubusercontent.com/lamassu/lamassu-patches/master/wallets/conf/btc-enable-rbf.sh | bash
By enabling RBF, all subsequent transactions will be marked as RBF, giving you the ability to later bump their fees if needed.
Replacing a transaction
To bump a transaction's fees, you'll need the unconfirmed transaction's txid (hash), which can be found in your exported transaction logs.
Run the following command, replacing txid below in the following command:
bitcoin-cli -conf=/mnt/blockchains/bitcoin/bitcoin.conf bumpfee txid
bitcoin-cli -conf=/mnt/blockchains/bitcoin/bitcoin.conf bumpfee 5c9d418e36b1a5da22e457fbbe08b56362ed9b37d4c841d58dd3bac4bd828d49
⚠️ NOTE: Fee-bumping applies only to transactions made after switching to RBF by default.