Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Doublespending a sendpayment sweep, possible? #769

Open
dreboli opened this issue Dec 19, 2017 · 7 comments
Open

Doublespending a sendpayment sweep, possible? #769

dreboli opened this issue Dec 19, 2017 · 7 comments

Comments

@dreboli
Copy link

dreboli commented Dec 19, 2017

I sweeped coins with sendpayment.py -N 0 -m 0 0 wallet.json myownaddress
The fees I manually set in joinmarket.cfg were too low.

Tried listunspent_args = [0] but still get [ERROR] There are no utxos in mixdepth: 0, quitting

What are my options?

@AdamISZ
Copy link
Member

AdamISZ commented Dec 19, 2017

Unfortunately no, there is no code to allow spending of spent coins in JM right now.

You could take the unconfirmed coins at myownaddress and spend them forward with a high fee, to do "Child Pays For Parent". (often abbreviated to CPFP). I have found this effective in the past. The only other thing you could try is to import all the private keys with coins from mixdepth 0 into another wallet and double spend from there, but clearly that's more of a pain.

@dreboli
Copy link
Author

dreboli commented Dec 20, 2017

My bitcoin core node offers an option to abandon transaction. Will it be possible to do the sweep again with a higher fee if I abandon the tx on the node that was set in joinmarket.cfg?

@AdamISZ
Copy link
Member

AdamISZ commented Dec 20, 2017

I believe so. However, I seem to remember (this is second hand info; I've never done it) that there is a need for a rescan after doing the zap? Will ping IRC in case anyone knows better.

@AdamISZ
Copy link
Member

AdamISZ commented Dec 20, 2017

from IRC:

<arubi> waxwing, if the tx isn't confirmed and dropped then there's no need for rescan, but I think this person should check if their tx was relayed to nodes or not
<oogle> https://chainquery.com/bitcoin-api/abandontransaction
<arubi> if it was then abandoning it wouldn't help because it'll be difficult to double spend anyway. cpfp is the cleanest I think

@dreboli
Copy link
Author

dreboli commented Dec 20, 2017

Rescan wasn't needed.
After abandoning the tx sendpayment.py can see the coins. Haven't tried to broadcast the new tx yet.

@dreboli
Copy link
Author

dreboli commented Dec 20, 2017

I tried to join the IRC channel but since Tor is banned from the server it would be complicated right now, so I have to ask here:

What would make the double spend difficult? Technically I just had to do the same sweep command with a raised fee set in the .cfg. Miners won't accept the double spent tx? Miners like CPFP tx more than double spend?

@AdamISZ
Copy link
Member

AdamISZ commented Dec 20, 2017

Just the generic problem that you don't know what's in people's mempools right, nor policies, it's not global. (Also if you can possibly avoid it don't do it now, we have historically (and enormously!) high fees (https://anduck.net/bitcoin/fees/)).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants