Skip to content

Add inputs to unconfirmed dust spend transaction #1

Description

@bubb1es71

When creating a new dust spend transaction:

  1. check for any existing unconfirmed transactions that have a single OP_RETURN output and one or more inputs with the SIGHASH_ALL|ANYONECANPAY signature type. The OP_RETURN can be empty (if original transaction was >= 65 bytes, ie. for single input P2WPKH) or contain the string ash.
  2. add the new dust spend input(s) to the existing transaction.
  3. verify the new fee rate is at least 1 sat/vb greater than the original transaction, if not don't combine.
  4. create a new PSBT with the existing signed input(s) and new unsigned input(s).
  5. sign and broadcast the new combined dust spend transaction.

This idea was suggested on delvingbitcoin by @ajtowns.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions