Bitcoin Forum

Bitcoin => Electrum => Topic started by: Charles-Tim on August 17, 2020, 08:00:06 PM



Title: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: Charles-Tim on August 17, 2020, 08:00:06 PM
Good day everyone, how has been the start of the week? I have just one question to ask, it is about electrum wallet. Few days ago, I made a transaction on electrum using low transaction fee as minimal as possible, the transaction did not confirm for as long as over 10 hours. So, I later wanted to pump the fee, but I was having no bitcoin on my electrum wallet to pump the fee, I decided to send bitcoin from another wallet to the electrum wallet, when the transaction was still uncomfirmed but the bitcoin already added to my balance. I pumped the fee but it was not successful, and I tried it multiple times but failed. I later waited for the transaction to be confirmed, I pumped the fee and it was successful.

Normally, I tried it because I was told electrum unconfirmed transaction can be spent but I noticed it can not be used to pump the transaction fee. Or, is there anything I did not get rightly?


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: BitMaxz on August 17, 2020, 10:43:52 PM
Normally, I tried it because I was told electrum unconfirmed transaction can be spent but I noticed it can not be used to pump the transaction fee. Or, is there anything I did not get rightly?
What exactly are you trying?

Are you trying to bump the fee of the receiving transaction from Electrum?

Or are you trying to bump the fee of the old transaction that you made from Electrum and you send another transaction from the other wallet to Electrum to bump the fee of the first transaction you made from Electrum?

To be able to use the bump fee the transaction must be RBF enabled to be able to bump the fee but if it's not set to RBF you can't bump the fee but you can double-spend the transaction.

Look at this.
https://i.imgur.com/DXkF3r0.png

As you can see mine "Use Replace-By-Fee" you can turn on yours if it is not checked.


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: nc50lc on August 18, 2020, 05:09:56 AM
-snip-
Is "Spend only confirmed coins" unchecked?
It's disabled by default and should stay unchecked if you want to use that feature.

Anyways if it's disabled, it should work with the latest versions.
It's either your additional UTXO isn't enough for the new total fee or...
that additional UTXO was sent from the receiver's wallet and it spent the output of the transaction that you're trying to RBF, because you can't use the child as an additional input to the parent.

But I bet it's the former.


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: Charles-Tim on August 18, 2020, 07:07:30 AM
What exactly are you trying?
I am trying to pump an unconfirmed transaction (sending) with unconfirmed transaction (receiving)

Are you trying to bump the fee of the receiving transaction from Electrum?
I sent bitcoinusing electrum, transaction not yet confirmed over hours, no enough bitcoin to pump the fee, sent another bitcoin from coinomi exchange account to electrum so I will be able to pump the fee, to make it fast, immediately I sent bitcoin from coinomi, the transaction was unconfirmed for about 15 minutes. Before the 15 minutes, I tried to pumped the fee of the unconfirmed electrum wallet fee, but failed until the transactions from coinomi wallet to electrum was confirmed.


To be able to use the bump fee the transaction must be RBF enabled to be able to bump the fee but if it's not set to RBF you can't bump the fee but you can double-spend the transaction.
It was enabled.

Is "Spend only confirmed coins" unchecked?
RBF: On
Spend unconfirmed: Yes.

I on the RBF and also I set the spend unconfirmed to yes. I think the issue is from electrum itself. Although unconfirmed transactions can be spent but using unconfirmed incoming transaction to pump fee will not work.


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: LoyceV on August 18, 2020, 08:19:03 AM
So, I later wanted to pump the fee, but I was having no bitcoin on my electrum wallet to pump the fee, I decided to send bitcoin from another wallet to the electrum wallet, when the transaction was still uncomfirmed but the bitcoin already added to my balance. I pumped the fee but it was not successful
Can you show the txids you've used?
It sounds like you're trying to bump transaction A by making a new transaction B, but that only works if B uses at least one of the outputs from A as input.


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: joniboini on August 18, 2020, 10:01:20 AM
Before the 15 minutes, I tried to pumped the fee of the unconfirmed electrum wallet fee, but failed until the transactions from coinomi wallet to electrum was confirmed.
What's the error message? It would be easier to find out why if you can show it.
Spend unconfirmed: Yes.
Do you mean Spend only confirmed coins? AFAIK there's no spend unconfirmed option as shown by the screenshot shared above.


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: bob123 on August 18, 2020, 10:47:00 AM
It sounds like you're trying to bump transaction A by making a new transaction B, but that only works if B uses at least one of the outputs from A as input.

I think he didn't try to do a CPFP, but a RBF transaction.

As far as i understood:
  • He did send a transaction with a fee too low
  • He did not have enough coins to bump the fee accordingly
  • He sent more coins to his wallet (to perform RBF)
  • He tried to RBF with more funds from an incoming unconfirmed transaction


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: LoyceV on August 18, 2020, 10:58:21 AM
I think he didn't try to do a CPFP, but a RBF transaction.
I was under the impression RBF requires the exact same inputs, but it looks like I was wrong (https://bitcoinops.org/en/topics/replace-by-fee/):
Quote
Replace-By-Fee (RBF) is a node policy that allows an unconfirmed transaction in a mempool to be replaced with a different transaction that spends at least one of the same inputs and which pays a higher transaction fee.


Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: Charles-Tim on August 18, 2020, 11:09:17 AM
Can you show the txids you've used?
It sounds like you're trying to bump transaction A by making a new transaction B, but that only works if B uses at least one of the outputs from A as input.
My first transaction
This was the transaction id (From my electrum wallet to recipient)
85508e35c65150864173c2f1f04e02c105894dc4befecedd7d10457819e198b7

My second transaction
This was the transaction id (From my coinomi wallet exchange account to my electrum wallet)
3e78b52fc65346b8bcd9786b87ed3f128fe8ed10688868f12130b4062c61afdf

When the transaction from my coinomi address exchange account address sent to my electrum address was confirmed, i was able to pump the fee successfully, but I wanted to make the transaction faster, the transaction from coinomi address exchnage account address take at least 15 minutes before it was confirmed on my electrum wallet (although, it has already appeared on my balance), before it was confirmed, I pumped the fee, but it did not work (I was unable to pump the fee) but after the transactions was confirmed, then I was able to pump the fee on electrum wallet. That is why I think, although, it is possible to spend unconfirmed transactions on electrum wallet but not possible to use an unconfirmed transaction to pump fee on electrum wallet.

What's the error message? It would be easier to find out why if you can show it.
No error message, but what I noticed was that the fee will pump but it is a lie, if I close the electrum wallet and opened it back, I noticed no fee was pumped. But until the unconfirmed transactions was confirmed, then the fee pumped after I pumped it again myself.

I think he didn't try to do a CPFP, but a RBF transaction.

As far as i understood:
  • He did send a transaction with a fee too low
  • He did not have enough coins to bump the fee accordingly
  • He sent more coins to his wallet (to perform RBF)
  • He tried to RBF with more funds from an incoming unconfirmed transaction
Yes, exactly. That is what I meant. Which means unconfirmed transactions can not be used to pump fee on electrum wallet.




Title: Re: Electrum wallet uncomfirmed transaction be used to pump fee
Post by: bob123 on August 18, 2020, 12:41:12 PM
Yes, exactly. That is what I meant. Which means unconfirmed transactions can not be used to pump fee on electrum wallet.

Yes, and that would match what has been proposed with RBF:


One or more transactions currently in the mempool (original transactions) will be replaced by a new transaction (replacement transaction) that spends one or more of the same inputs if,
[...]
    The replacement transaction may only include an unconfirmed input if that input was included in one of the original transactions. (An unconfirmed input spends an output from a currently-unconfirmed transaction.)
[...]

So, you can only use confirmed UTXO's to bump a fee.
All unconfirmed inputs used, must have been used in the original transaction too.