Skip to content

Conversation

@151henry151
Copy link
Contributor

@151henry151 151henry151 commented Nov 22, 2025

Fixes #30070

When creating an unsigned PSBT from the GUI, the transaction was already signed during preparation, causing legacy inputs to have non-empty scriptSig fields. The PSBT parser then rejects them.

This defers signing until the user clicks "Send" instead of signing during preparation. Fee calculation still works since transactions can be created without signing.

Follows the approach suggested by @achow101 in the issue comments.

@DrahtBot
Copy link
Contributor

DrahtBot commented Nov 22, 2025

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
Concept ACK achow101

If your review is incorrectly listed, please copy-paste <!--meta-tag:bot-skip--> into the comment that the bot should ignore.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@hebasto hebasto changed the title qt: Defer transaction signing until user clicks Send Defer transaction signing until user clicks Send Nov 22, 2025
@151henry151
Copy link
Contributor Author

It looks like the one failing check is a CI issue with disk space too low. I'm not sure how to address that. I think the code of the PR is correct.

@151henry151
Copy link
Contributor Author

@achow101 would you like to check this out and let me know if it looks OK?

@maflcko maflcko closed this Dec 17, 2025
@maflcko maflcko reopened this Dec 17, 2025
@151henry151
Copy link
Contributor Author

Should I push an empty commit to trigger a re-run of the CI here, or is there some other action needed?

@hebasto
Copy link
Member

hebasto commented Jan 19, 2026

Should I push an empty commit to trigger a re-run of the CI here, or is there some other action needed?

No action needed.

@hebasto
Copy link
Member

hebasto commented Jan 19, 2026

cc @achow101 @furszy

@hebasto hebasto added Wallet and removed CI failed labels Jan 19, 2026
Copy link
Member

@achow101 achow101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK

Fixes #30070

When creating an unsigned PSBT from the GUI, the transaction was already signed during preparation, causing legacy inputs to have non-empty scriptSig fields. The PSBT parser then rejects them.

This defers signing until the user clicks "Send" instead of signing during preparation. Fee calculation still works since transactions can be created without signing.

Follows the approach suggested by @achow101 in the issue comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Load PSBT error: Unable to decode PSBT

5 participants