Author

Topic: RBF - Strange Note. (Read 173 times)

legendary
Activity: 2268
Merit: 18711
January 03, 2024, 11:19:01 AM
#8
What are the odds of both transactions being included in the same block?
Zero. Such a block would be invalid, since it spends the same coins twice.

If both transactions are valid then both transactions can be included in the same block too if the fee is used in the same range then what happens?
The default behavior of a node is never have two or more conflicting transactions in its mempool. When it accepts a replacement, it evicts the original. As such, it would never create a candidate block which contains two conflicting transactions. Should some mining pool edit their software and accidentally mine a block containing conflicting transactions, all other nodes on the network would reject it as being invalid.
hero member
Activity: 2366
Merit: 793
Bitcoin = Financial freedom
January 03, 2024, 11:15:40 AM
#7
The old transaction is valid. The new transaction is also valid. Both remain completely valid and either can be mined, right up to the point where one of them is included in a block.

Take note that as long as none of transactions have been confirmed, both are valid.

Thanks for the info, that leads to my follow-up question.

What are the odds of both transactions being included in the same block? If both transactions are valid then both transactions can be included in the same block too if the fee is used in the same range then what happens?
legendary
Activity: 2268
Merit: 18711
January 03, 2024, 07:38:39 AM
#6
because I thought increasing the fee (RBF) will void the old hash and will be rebroadcasted with a new signature
Nothing about RBF makes any of the transactions being replaced invalid.

When someone makes a replacement transaction, think of it as a brand new and completely separate transaction which just happens to spend (some of) the same coins. Because, well, it is. It is not the old transaction with a new signature - it is a completely different transaction. The old transaction is valid. The new transaction is also valid. Both remain completely valid and either can be mined, right up to the point where one of them is included in a block. Only at that point will the other transaction become invalid since (some of) the coins it spends will now have been spent elsewhere.
legendary
Activity: 2380
Merit: 5213
January 03, 2024, 02:17:57 AM
#5
I know that miner can include any transaction available in the mempool but I don't get the point of a non-RBF TX with a high fee over the same coin with zero fee into the block because I thought increasing the fee (RBF) will void the old hash and will be rebroadcasted with a new signature so the TX which broadcasted later only should be available on the network right?
If you replace a transaction with a new one paying higher fee, nodes remove the first transaction from their mempool and it's the second transaction that will be probably included in the blockchain.
But there's nothing stopping a miner from including the first transaction.


Take note that as long as none of transactions have been confirmed, both are valid.
hero member
Activity: 2366
Merit: 793
Bitcoin = Financial freedom
January 02, 2024, 11:35:13 PM
#4

A miner can include a transaction paying zero fee even if there's an unconfirmed non-RBF transaction broadcasted earlier with a very high fee spending the same coin.

I know that miner can include any transaction available in the mempool but I don't get the point of a non-RBF TX with a high fee over the same coin with zero fee into the block because I thought increasing the fee (RBF) will void the old hash and will be rebroadcasted with a new signature so the TX which broadcasted later only should be available on the network right?
newbie
Activity: 16
Merit: 6
January 02, 2024, 07:12:47 PM
#3
Here are two possibilities.

1. The mining pool that included the replacement transaction didn't have the first transaction in its mempool and accepted the second transaction when they received it.
2. The mining pool that included the replacement transaction has enabled full RBF.

Any node that has enabled full RBF treat any transaction as RBF-enabled and accept the replacement transaction even if the original transaction has not been flagged as RBF.


And it may worth mentioning that RBF isn't a consensus rule. RBF is a policy and miners are free to include any valid transaction they want.
A miner can include a transaction paying zero fee even if there's an unconfirmed non-RBF transaction broadcasted earlier with a very high fee spending the same coin.


Your explanations are consistently legendary. Thank you very much for your response.
legendary
Activity: 2380
Merit: 5213
January 02, 2024, 02:39:38 PM
#2
Here are two possibilities.

1. The mining pool that included the replacement transaction didn't have the first transaction in its mempool and accepted the second transaction when they received it.
2. The mining pool that included the replacement transaction has enabled full RBF.

Any node that has enabled full RBF treat any transaction as RBF-enabled and accept the replacement transaction even if the original transaction has not been flagged as RBF.


And it may worth mentioning that RBF isn't a consensus rule. RBF is a policy and miners are free to include any valid transaction they want.
A miner can include a transaction paying zero fee even if there's an unconfirmed non-RBF transaction broadcasted earlier with a very high fee spending the same coin.
newbie
Activity: 16
Merit: 6
January 02, 2024, 01:57:55 PM
#1
Hi,

I have a question and hope someone has a clear explanation.

A few days ago, I noticed a transaction on the network that doesn't support the RBF. Today, by coincidence, the same page was opened on my phone, and I can see that the same hash was replaced. How did this happen? The user used RBF while the transaction on the mempool and blockchain indicated RBF: NO. (The transaction has the same input.) Here is a screenshot for the hash: (https://prnt.sc/Nzgznfu6C_aW)

And here is the hash as well. (9e8159d690b3390c78b8d5a759d2395ce22f7ae33a3425bfed82ce20238232ba)

Is there any expert available to provide an explanation?

Thank you in advance for your time reading this and for your time to respond.

Regards,
Jump to: