Questions tagged [replace-by-fee]
describes a mechanism to mark transactions as replaceable until they are confirmed.
119 questions
1
vote
1
answer
23
views
Is there a Bitcoin Core method that identify when a transaction in the mempool uses Replace-By-Fee (RBF)?
I am trying to track transactions in the mempool that utilize Replace-By-Fee (RBF). My approach involves saving the current transactions in the mempool and comparing them to newly added transactions. ...
3
votes
1
answer
159
views
Can we cancel a Bitcoin transaction like an Ethereum transaction with same nonce but higher gas fee?
I need to use BTC transactions to buy some shares. If the shares are full (eg. it only counts on first 100BTC), can my unconfirmed transactions be cancelled? Because even if they are mined later, they ...
4
votes
1
answer
521
views
Why does RBF rule #3 exist?
The mempool-replacements.md document states the following rules for RBF:
The replacement transaction pays an absolute fee of at least the sum paid by the original transactions.
The additional fees (...
1
vote
2
answers
149
views
SIGHASH_ANYONECANPAY mediated tx modification
If Alice broadcasts a tx with an input tx_in1 and output tx_out1 signed with SIGHASH_ALL | SIGHASH_ANYONECANPAY, it lives temporarily in the mempool. Bob chooses to be a part of the crowdfunding and ...
1
vote
1
answer
66
views
How can a replace occur with a tx with lower fee and feerate?
I have seen a tx A get replaced by a tx B, where B had a lower fee and feerate than A and it was broadcasted later. How is it possible?
These are the txs details:
Tx A: segwit, ̶t̶a̶p̶r̶o̶o̶t̶, ...
0
votes
1
answer
75
views
Bitcoin Core: "Increasing transaction fee failed (Unable to create transaction. Insufficient funds)"
I sent a RBF transaction, and it's in the mempool. I'd like to increase the fee so it confirms sooner. ¿Why does Bitcoin Core say:
Increasing transaction fee failed (Unable to create transaction. ...
2
votes
0
answers
55
views
How can you remove an input via RBF with Bitcoin Core?
I have an original transaction with two inputs and want to replace it with a transaction that has only one of the two inputs.
Original transaction spending from two addresses:
input 1: 0,5 btc ⇒ ...
0
votes
1
answer
71
views
Does new transaction in RBF has a txid different from the stuck transaction ? If yes , then isn't it basically creating a new transaction?
If I am sending a new RBF transaction to replace my stuck transaction and since the txid preimage has outputs value it will change the txid then why do we even care about RBF and nsequence < ...
1
vote
1
answer
120
views
Are RBF transactions on average larger in size than its predecessors and than non-RBF transactions?
Are RBF transactions (the ones that replace) on average larger in size than its predecessors (the ones to be replaced)? And are non-RBF transactions smaller in size when compared with opt-in-RBF ...
1
vote
1
answer
66
views
Can I tell if my peers enable mempoolfullrbf?
Trying to ensure my node is connected to some fullrbf peers, but it doesn't seem that there is a discoverable service for fullrbf? Am I stupid or missing something?
1
vote
1
answer
237
views
btc RBF insufficient fee, rejecting replacement
I try to replace this transaction 13bc8f787f7c972702b6d14b8c0b36335aac5d0027800e2de277910a5eff86fb by higher fee, when broadcast return err: broadcast error, -26: insufficient fee, rejecting ...
3
votes
1
answer
319
views
What is the problem with the recent "One-Shot Replace-by-Fee-Rate" Proposal?
There recently was a proposal to allow replacements that only beat the original by feerate, instead of by both the feerate and absolute fee.
One-Shot Replace-by-Fee-Rate
We can mitigate Rule #3 ...
1
vote
1
answer
107
views
How to make RBF with changed output address per CLI?
Please, can anyone explain to me how to make an RBF with changing the output address exactly? Which commands should I use for that? I tried to use the 'send' command to send the same amount with a ...
4
votes
2
answers
184
views
How is the total number of transactions that will be replaced calculated in this case?
One of the rule for the transaction replacement (RBF) is that the number of original transactions (directly conflicting transactions + their descendants) can't exceed 100. However, in presence of ...
1
vote
1
answer
257
views
What is incremental relay feerate?
In an answer to my previous question, Murch used the term: incremental relay feerate.
On first, I thought that's the same as minimum relay fee (minRelayTxFee) - minimum feerate (sat/VB) that ...
4
votes
1
answer
420
views
What happens when two or more transactions are covered ("hit") by RBF?
RBF (Full RBF, Opt-in Full RBF, FSS-RBF) is applied to a transaction when one of its inputs "matches" one of the inputs in the replacement transaction.
However, what happens if the inputs of ...
3
votes
2
answers
784
views
What types of RBF exist and which one does Bitcoin Core support and use by default?
As far as I know Bitcoin Core knows two types of RBF. These are Full RBF and Opt-in Full RBF. In both cases, the transaction will be replaced if a new one arrives that consumes at least one of the ...
1
vote
0
answers
69
views
Building a CPFP raw transaction to confirm a force-closed Lightning channel [closed]
I am attempting to use bitcoin-cli createrawtransaction to build a CPFP transaction to pay for a low-fee channel close that has been unconfirmed for over a week.
I have all of the details, i.e, txid, ...
-1
votes
1
answer
56
views
Are non-RBF transactions more likely to be confirmed sooner?
Are non-RBF transactions more likely to be confirmed sooner?
It would seem miners would prefer them (contra this answer) because they don't have to worry about another miner utilizing a higher fee re-...
2
votes
1
answer
306
views
Why can't I bumpfee the 25th tx in an unconfirmed chain?
I have a chain of 25 unconfirmed transactions. There's a default mempool limit of 25 chained unconfirmed transactions, so my change output of the 25th transaction is not usable until some of the ...
2
votes
1
answer
186
views
What is the relation between nLockTime and nSequence?
Here Antoine said the following:
This introduced absolute timelock capability through the nLockTime transaction field, which is disabled if all the transactions inputs have an nSequence that is ...
4
votes
1
answer
252
views
What are all the meanings of the nSequence field?
I know the original purpose of the nSequence field was to hold the transaction in the mempool with the transaction being replaced when the larger value comes and so on up to 0xFFFFFFFF when the ...
9
votes
0
answers
222
views
What are the advantages to attackers of different styles of replacement cycle attacks?
In Antoine Riard's
original description of replacement cycle attacks against HTLCs, a replacement cycle looks like this:
Bob broadcasts an HTLC-timeout (input A, input B for fees, output X)
Mallory ...
2
votes
0
answers
2k
views
How can I raise the fee of a transaction in Bitcoin Wallet App?
I am using the Bitcoin wallet app from bitcoinj.org. I sent a payment with a low fee so it's been pending for 8 days. I wrote the developers and they only replied with auto. Beneath is what I got:
Q: ...
1
vote
1
answer
213
views
How to properly calculate fee for RBF transaction?
Suppose I just sent Tx1, which has length of 200 bytes and fee rate of 10 satoshi/byte, totaling fee 0.00002 BTC. Now I replace it with Tx2 that has the same count of inputs and outputs, and also has ...
2
votes
1
answer
385
views
Open Channel Transaction without RBF is stuck
An open-channel transaction has too low fees and does not get confirmed. It has opted in to RBF, but there is no change output. So I think it is not possible to use lightning-cli openchannel_bump?
Isn'...
0
votes
0
answers
421
views
My bitcoin core transaction is stuck in the mempool. I am the sender. I need help with either accelerating this transaction or preparing a CPFP trx
Hello and thank you for looking at my first question. This is my first question ever on StackExchange.
I engaged in Bitcoin transactions as the sender; trying to send some Bitcoin to my CashApp so I ...
3
votes
2
answers
664
views
How can I change the inputs and fee of an unconfirmed Bitcoin transaction?
I have a 3 days old unconfirmed Bitcoin transaction that has 13 inputs, 2 outputs and a low fee.
I want to remove the small value inputs because as it increases the size, it also increases the minimum ...
3
votes
1
answer
1k
views
Stuck transaction with enough fee rate
I've sent a Bitcoin transaction using the Bitcoin Core client and later realized the fee was too low (Fee 0.00005814 BTC ~ $1.69 USD)
https://www.blockchain.com/explorer/transactions/btc/...
9
votes
1
answer
412
views
How to disable RBF in Bitcoin Core?
I am creating a transaction with Bitcoin Core (v24.0.1) and it has RBF enabled (sequence: 4294967293) by default. I am trying to disable RBF by adding walletrbf=0 and mempoolfullrbf=0 to bitcoin.conf ...
3
votes
1
answer
934
views
Best Practices with Multiple CPFPs & CPFP + RBF
Problem:
In times of escalating fees and a growing mempool, multiple prioritizations may be necessary if the initial Child Pays For Parent (CPFP) transaction fails to offer a sufficient fee. However, ...
5
votes
1
answer
2k
views
How do I perform a RBF transaction through Bitcoin Core?
I have no knowledge about Bitcoin Core and attempted my first transaction, which failed due to low fee due to a basic math error. (Did not notice it was per kilobyte rather than per byte.)
It is ...
5
votes
2
answers
158
views
How would an adversary increase the required fee to replace a transaction by up to 500 times?
In the ephemeral anchors draft BIP (also discussed here) it states that without V3 transactions an adversary can increase the required fees to replace a transaction as much as 500 times. That sounds a ...
3
votes
1
answer
206
views
Comparison between CPFP and BIP125 for fee bumping
As far as I understood so far, CPFP and BIP125 are both designed to help spenders to make new transactions using an input of an unconfirmed transaction by paying the cost. The most well known use case ...
2
votes
1
answer
120
views
How is it possible to bypass bip125#2?
I was reading this github gist about rbf improvements written by glozow. I had difficulty understanding parts of it.
The main confusion I have is for this paragraph:
BIP125#2 can be bypassed by ...
3
votes
1
answer
162
views
What is an ephemeral anchor and what problems do they address?
What is an ephemeral anchor and what problem(s) would their introduction address? What is their relation to anchor outputs in Lightning? Are ephemeral anchors a prerequisite for eltoo?
V3 and package ...
0
votes
1
answer
132
views
What issues would changing the default policy in Core to mempoolfullrbf=1 resolve and which of the current policy proposals would be simplified?
What issues would changing the default mempool policy in Core to mempoolfullrbf=1 resolve and which of the current policy proposals (e.g. BIP125 replacement, V3 Policy, package RBF, discussed here) ...
2
votes
2
answers
345
views
What and where are the current status of the BIP 125 replacement, the V3 Policy proposal, package RBF etc?
Whenever I try to review P2P and mempool (default) policy proposals I end up going round in circles around this maze of docs, mailing list posts and pull requests. Some of them are outdated, some ...
7
votes
1
answer
1k
views
What are the arguments in the `mempoolfullrbf` debate?
In the past months there has been a debate about the new mempoolfullrbf startup option released in Bitcoin Core v24.0.1. The debate seems to be overlapping with debates whether full-rbf and 0-conf are ...
2
votes
1
answer
134
views
persistence of the RBF bit in post-fullrbf chain
In case consensus decided to ignore pro-zeroconf nodes (in case that is or can be a thing),
then what's the point of having the RBF bit in a transaction, if everything in the system is enforcing RBF (...
2
votes
2
answers
323
views
Could you use RBF to take back stolen funds?
If you saw a transaction from a UTXO you control in the mempool that you didn't sign (i.e. it was stolen), could you use RBF to move it to an address you control before it was confirmed?
4
votes
1
answer
131
views
Does `0 OP_CSV` force the spending transaction to signal BIP125 replacability?
If I send bitcoins to an output whose script will execute 0 OP_CHECKSEQUENCEVERIFY when it is spent, does that require the spender to set the BIP125 signal indicating that the transaction is ...
3
votes
2
answers
571
views
Is it possible to set RBF as always-on in bitcoind?
I can't seem to find any cli commands for this. Is it even possible? Or does RBF need to be opted into on a per transaction basis?
I would just like every transaction sent by my node to be RBF enabled....
1
vote
1
answer
131
views
Where can I find statistics for the current RBF adoption?
What's the percentage of on-chain transactions having RBF (replace-by-fee) activated the last 30 days?
What query could I run against my node to find out?
4
votes
2
answers
1k
views
Can RBF be used to change the value of a transaction?
I understand that we can use RBF Protocol to replace a transaction with higher fees to get the transaction confirmed faster.
However, is it possible to use RBF to change the value of the transaction, ...
1
vote
0
answers
56
views
What happens if a transaction does not signal replaceability but spends an output from an unconfirmed RBF transaction?
What happens if a wallet spends an output of an unconfirmed Opt-In Replace-by-fee (BIP125) transaction, but does not flag the spending transaction as Opt-In Replace-by-fee?
Receiving wallets would see ...
0
votes
1
answer
96
views
Exploit vulnerable projects using RBF policy
If a project is vulnerable to some type of RBF policies, how could an attacker exploit this project?
1
vote
1
answer
628
views
How can I use RBF to replace a transaction sent from Bitcoin Core?
How do I resend a transaction with RBF on a Bitcoin Core node v.19 or v.20? I am running it on Ubuntu.
I tried bumpfee txid and got the response that “the transaction is not BIP125 replaceable”. What ...
5
votes
1
answer
149
views
How does RBF (BIP 125) behave, when the unconfirmed UTXOs are being spent?
Let's assume we broadcast transaction A (TXA), signalling Replace-By-Fee as defined in BIP 125. We pay 1 sat/vByte for the transaction.
One of the outputs goes to Bob. But Bob immediately spends his ...
0
votes
1
answer
288
views
Multisig and RBF after taproot
Are there any benefits of above setup after taproot is activated that improve privacy in any way?
What is the setup?
3of3 multisig address with 0.1 BTC unspent
Alice, Bob and Carol own the keys for ...