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

Doublespending a sendpayment sweep, possible? #769

Open

Description

@dreboli

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?

Activity

  1. AdamISZ commented on Dec 19, 2017

    @AdamISZ
    Member

    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.

  2. dreboli commented on Dec 20, 2017

    @dreboli
    Author

    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?

  3. AdamISZ commented on Dec 20, 2017

    @AdamISZ
    Member

    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.

  4. AdamISZ commented on Dec 20, 2017

    @AdamISZ
    Member

    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

  5. dreboli commented on Dec 20, 2017

    @dreboli
    Author

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

  6. dreboli commented on Dec 20, 2017

    @dreboli
    Author

    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?

  7. AdamISZ commented on Dec 20, 2017

    @AdamISZ
    Member

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions