Skip to content

commands: add dscancel command, analog to bumpfee - #11005

Open
devdavidejesus wants to merge 1 commit into
spesmilo:masterfrom
devdavidejesus:cli-dscancel
Open

devdavidejesus wants to merge 1 commit into
spesmilo:masterfrom
devdavidejesus:cli-dscancel

Conversation

@devdavidejesus

Copy link
Copy Markdown

Fixes #8268.

Exposes wallet.dscancel on the CLI/RPC, following the existing bumpfee command as suggested in the issue. It accepts a raw tx or a txid (which must already be in the wallet history), new_fee_rate in sat/vbyte, and --unsigned / --password.

Tests: test_dscancel in tests/test_commands.py, reusing the test_bumpfee fixture. It covers the signed replacement (same input, a single output back to the wallet), the unsigned PSBT, rejection when the new fee rate is not higher than the old one, and the txid path with and without the tx in the wallet db.

cpfp is left out to keep this focused; happy to add it in a separate PR if wanted.

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

Successfully merging this pull request may close these issues.

add command to double-spend cancel a transaction

1 participant