mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Support Imported PSBTs Whose Displayable Outputs Are All Wallet-Owned #759
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#759
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current send-recipient projection can reject imported PSBTs when all outputs are skipped as wallet-owned/change-like outputs. That is a send-draft assumption leaking into imported PSBT review.
Acceptance criteria:
Follow-up to https://github.com/bitcoin-core/gui-qml/pull/750
Concrete cases for this, from a wallet that holds the keys. The shortest needs no outside tool: the app refuses the file its own Save transaction wrote.
To reproduce:
A popup says "Not supported / The PSBT does not have any recipient outputs to review." and no review opens.
savings, plus changewalletprocesspsbtin the same wallet completes each of these files, andtestmempoolacceptallows the result.In the mixed file, Recipients lists only the outside address, Total amount is 0.20000860 BTC, and Transaction flow draws the 0.3 BTC output as "Change · ". Core has that address as
ischange: falsewith the labelsavings. Send transaction broadcast it.The import skips every wallet-owned output when the wallet can send, and the flow calls an owned output that is not a listed recipient change:
github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/models/walletqmlmodel.cpp (L2869-L2880)github.com/bitcoin-core/gui-qml@2bd5a61e83/qml/models/walletqmlmodel.cpp (L2957-L2965)Bitcoin-Qt's PSBT dialog, by its source, lists every output and marks the wallet's with "(own address)" (psbtoperationsdialog.cpp#L194). The same listing would cover #1117, the other branch of this condition.
Reproduced on
qt6at2bd5a61e8304, macOS arm64 / Qt 6.9.0, isolated regtest, offscreen only, and once ateed1f426fcb6. File paths went through the test path fields, not the dialogs, and clicks through the test bridge. The outside files were built over RPC. Bitcoin-Qt was read, not run.