Bitcoin Forum
May 05, 2024, 06:32:43 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Transaction pending after 1 week  (Read 246 times)
F2b
Hero Member
*****
Offline Offline

Activity: 2078
Merit: 863


View Profile
July 31, 2023, 10:12:57 PM
Merited by o_e_l_e_o (4)
 #21

BIP125 says that:

Quote
3. The replacement transaction pays an absolute fee of at least the sum paid by the original transactions.

The thing I am not sure about is what exactly "original transactions" refers to.
Does it mean the transactions that have the same input(s) as the replacing transaction or their unconfirmed children are also included?

Considering what happened to OP when trying to increase the fee, it seems that it's the latter.

Hi, I've been following this case from the French sub-forum and am trying to understand this.
As you said, and considering that the problem was (apparently) solved by putting the suggested fee, it seems that unconfirmed children were indeed included.

But I don't understand why. More specifically, why would miners not replace three transactions at 10 sat/vB (for example) by a single one at 11 sat/vB ? Because of course it's less fees overall, but also less space used, so the important metric should be the fee/space_used ratio (that is, the sat/vB rate). What am I missing?

Edit: or maybe miners would mine it but the transaction isn't relayed by nodes because it's just not in compliance with the BIP?
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714933963
Hero Member
*
Offline Offline

Posts: 1714933963

View Profile Personal Message (Offline)

Ignore
1714933963
Reply with quote  #2

1714933963
Report to moderator
hosseinimr93
Legendary
*
Offline Offline

Activity: 2394
Merit: 5235



View Profile
July 31, 2023, 10:56:13 PM
 #22

But I don't understand why. More specifically, why would miners not replace three transactions at 10 sat/vB (for example) by a single one at 11 sat/vB ? Because of course it's less fees overall, but also less space used, so the important metric should be the fee/space_used ratio (that is, the sat/vB rate). What am I missing?
I think that's to make abusing RBF feature more expensive.


Edit: or maybe miners would mine it but the transaction isn't relayed by nodes because it's just not in compliance with the BIP?
Miners are free to include any valid transaction. Miners can include the replacing transaction, even if it pays less fee. But since almost all nodes follow standard rules, your replacing transaction has to meet the requirements stated in BIP125.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
BitMaxz
Legendary
*
Online Online

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
July 31, 2023, 11:18:20 PM
 #23

yes of course, i still dont understand how i could make the mistake four times
but now i have selected "send only confirmed money"
hope i will never do the mistake

to resume i didnt sent coin to other address except mine for 30sat?


The only mistake you did is that you tried to bump the transaction but you paid a low fee. Because when using the bump fee feature on Electrum you need to increase the fee more than the previous transaction but you paid it low than the recommendation.

And there is no problem sending your BTC to your wallet and actually, it helps to consolidate all UTXO into one that can reduce the transaction fee in the future when you made a new transaction.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2408
Merit: 5588


Self-proclaimed Genius


View Profile
August 01, 2023, 05:43:55 AM
 #24

But I don't understand why. More specifically, why would miners not replace three transactions at 10 sat/vB (for example) by a single one at 11 sat/vB ? Because of course it's less fees overall, but also less space used, so the important metric should be the fee/space_used ratio (that is, the sat/vB rate). What am I missing?
It's all about BIP125's standard which is widely adapted by nodes.
BIP-0125: https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki#implementation-details

For the "space used", the client can consolidate it into one transaction if the user choses to, in fact Electrum has a "Batch unconfirmed transactions" option to do so.
but the fee must still comply with the standard which is equal to the fee of the to-be-replaced transactions plus its own fee.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
August 01, 2023, 06:36:55 AM
Merited by hosseinimr93 (4), F2b (1)
 #25

But I don't understand why. More specifically, why would miners not replace three transactions at 10 sat/vB (for example) by a single one at 11 sat/vB ? Because of course it's less fees overall, but also less space used, so the important metric should be the fee/space_used ratio (that is, the sat/vB rate). What am I missing?
Great question. There are two main reasons why a replacement transaction must pay higher fees than all the unconfirmed transactions it is replacing.

The first reason you almost figured out yourself in the sentence I quoted above. Taking your example - let's say I have a chain of three unconfirmed transactions paying 10 sats/vbyte each. I want to replace the first one with a new transaction paying 11 sats/vbyte, which would evict the other two, freeing up space for the miner to include other transactions. But maybe the next highest fee paying transactions in the mempool which the miner can include only pay 3 sats/vbyte. It then makes more sense for the miner to ignore my replacement and mine my three original transactions at 10 sats/vbyte each, than it does for them to accept my replacement and mine one transaction at 11 sats/vbyte and two transactions at 3 sats/vbyte. My replacement must therefore pay more than all the transactions it is evicting to ensure it is always economical for miners to accept it.

The second reason is DoS protection. Let's say I broadcast a transaction at 1 sat/vbyte when the mempool is quite full and I know it isn't going to be confirmed any time soon. I then broadcast 20 more transactions building on this transaction, with a combined size of tens of thousands of bytes, all paying 1 sat/vbyte. Every node in the network has to receive, validate, and then broadcast my huge transactions. I can then immediately cancel all of those transactions by replacing my original transaction at a fee of 1.01 sats/vbyte. I can then broadcast another 20 more new child transactions with a huge size building on this replacement, which again, every node has to receive, validate, and broadcast. I can then cancel them all by replacing my original transaction again with a new one paying 1.02 sats/vbyte. I can repeat this thousands of times for almost zero cost and completely spam out the network. But by making me pay a fee higher than all the transactions I am evicting, this kind of attack rapidly becomes prohibitively expensive.
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
August 01, 2023, 06:38:51 AM
 #26

guys you rock

i tried with 30sat, finally ! direclty accepted \o/
https://ibb.co/LPMmR8x

a little expensive but wow it solved my problem

but no at all
there is still an unconfimed transaction but i think it's on the way

now i will try to never send to myself mBtc lol

thanks again for your time



Yeah, when you send Bitcoins in any kind of transaction, it's going to use some of your UTXOs to make that transaction - Electrum has a tab to show you the UTXOs you have available.

Once a UTXO is in an unconfirmed transaction, it can't be used to make another one because it's going to be spent very soon, so if you're not careful you could end up with a lot of bitcoin UTXOs stuck in unconfirmed transactions with low fees.

The Electrum setting "Spend unconfirmed outputs" should be switched off for this reason.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18509


View Profile
August 01, 2023, 06:45:29 AM
Last edit: August 01, 2023, 07:11:15 AM by o_e_l_e_o
 #27

Once a UTXO is in an unconfirmed transaction, it can't be used to make another one because it's going to be spent very soon
But that's exactly what RBF is - taking a UTXO which is already being spent in an unconfirmed transaction, and spending it again with a higher fee, therefore replacing the original transaction.

The Electrum setting "Spend unconfirmed outputs" should be switched off for this reason.
This setting only prohibits you from spending unconfirmed outputs you are receiving in to one of your addresses. It does not prevent you from using already confirmed outputs which are being spent elsewhere in an RBF replacement transaction. I'm not sure I agree about turning it off since then it limits your option and prevents you from using CPFP. Better simply to learn how transactions and UTXOs work so you understand what is going on.
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
August 01, 2023, 08:49:19 AM
 #28

Once a UTXO is in an unconfirmed transaction, it can't be used to make another one because it's going to be spent very soon
But that's exactly what RBF is - taking a UTXO which is already being spent in an unconfirmed transaction, and spending it again with a higher fee, therefore replacing the original transaction.

RBF works in most cases but I was talking about the one where you need to make a bunch of different payments at once, so you'd need a completely different receiving address, which is not how RBF is normally used.

Of course, pay-to-many should have been used from the beginning in those cases, and you can actually use RBF to replace a transaction with such, but again, most wallets that support RBF do not support changing the receiving addreses, and also autoselect the sending addresses obviously.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!