Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot double spend [350k sat] #7049

Closed
Transisto opened this issue Feb 20, 2021 · 7 comments
Closed

Cannot double spend [350k sat] #7049

Transisto opened this issue Feb 20, 2021 · 7 comments

Comments

@Transisto
Copy link

We'd have wanted to use the double spend feature but can't.

I suspect it could either be because we haven't produced any change (Send MAX)
or because all outputs are being sent to the local wallet.

@Transisto
Copy link
Author

Transisto commented Feb 20, 2021

I wish there was a way to make use of UTXOs that have been used in a still unconfirmed transaction.

I'm thinking either the coin selection tab could show them as grayed out but would be able to manually select them. (There'd be a small chance it could create invalid transactions when tiring to spend outputs of different still unconfirmed parent transactions.)

But IMO much simpler, What if we could simply ignore a specific transaction in the mempool to then be able to craft a custom double spend?

I'm setting a 350k sat bounty if someone can help us double spend that large consolidating transaction by just double spending a single UTXO. (without having to manually edit electrum wallet files with a text editor at a dozen or more places)

#1847

@Transisto Transisto changed the title Cannot double spend Cannot double spend [350k sat] Feb 20, 2021
@SomberNight
Copy link
Member

We'd have wanted to use the double spend feature but can't.
I suspect it could either be because we haven't produced any change (Send MAX)
or because all outputs are being sent to the local wallet.

I assume you mean the "Cancel (double spend)" feature, which spends back the inputs to your wallet.
Indeed, it is not shown if "all outputs are being sent to the local wallet" -- what would be the point then? Why don't you just use "increase fee" instead?

But IMO much simpler, What if we could simply ignore a specific transaction in the mempool to then be able to craft a custom double spend?

  • go to the Console tab, and run wallet.remove_transaction(TXID), where TXID should be substituted for the txid of the old tx you are trying to replace
  • the GUI should refresh, the tx should disappear from the History tab, and the input UTXOs should reappear in the Coins tab. If needed, you can try to force a refresh by pressing F5
  • go to the Coins tab and manually select inputs such that they would conflict with the old tx
  • go to the Send tab and create a new tx
  • before signing the tx, during the payment flow, go to the "Advanced" tx preview dialog and manually verify that the new tx indeed conflicts with the old tx (i.e. they have at least one shared input)

@Transisto
Copy link
Author

Transisto commented Feb 20, 2021

Because it's a very large consolidation, and I'd like to invalidate a single UTXO with a higher fee.
Not sure what are the miners policy when choosing between a large transaction with sum fee of 100k sat or a much smaller one with a sum of 15k sat but I assume it'd work.

Thanks will try this out.

@SomberNight
Copy link
Member

Not sure what are the miners policy when choosing between a large transaction with sum fee of 100k sat or a much smaller one with a sum of 15k sat but I assume it'd work.

Ah that won't work I am afraid. BIP125 rule 3 says the absolute fee needs to increase.

@Transisto
Copy link
Author

Transisto commented Feb 20, 2021

>>> wallet.remove_transaction(Correct TXID)
Traceback (most recent call last):

Doesn't seems to be doing anything,

I disconnected the wallet before.

EDIT: Nevermind, it worked with " "

@Transisto
Copy link
Author

Is there a general way to donate to electrum?

I'll try anyway and report back if any miners overlooked rule #3

@ecdsa
Copy link
Member

ecdsa commented Feb 23, 2021

Electrum does not accept donations, but you can donate to the operators of Electrum servers.

@ecdsa ecdsa closed this as completed Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants