mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
PSBT: Old password prompt can send a newly imported transaction #1037
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#1037
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?
I can import another PSBT while the first one's password prompt is open, then use that old prompt to sign and broadcast the replacement. The wallet never changes.
Tested on
qt6atd567e3eb2497, native macOS / Qt 6.9.0, with a disposable regtest wallet.walletcreatefundedpsbtwithpsbt_version=0to make two unsigned PSBTs spending the same coin: one sending 0.1 BTC and another sending 0.2 BTC to a valid regtest address. Base64-decode each returnedpsbtfield and save it as a binary.psbtfile.The review updates to 0.2 BTC behind the prompt, but the old prompt stays active and sends that replacement. I checked the exact transaction ID in the mempool: the second PSBT was broadcast, the first wasn't. Without the replacement import, the normal signing flow sent the expected transaction.
onTransactionChangedonly closes the sweep warning. The password handler still callssendTransactionWithPassphrase()against the wallet's current transaction.Importing a new PSBT should close and invalidate the old signing prompt. A stale submission also needs to be rejected before signing, so the replacement gets a fresh review and Send decision.
Related to #1027, #975 and #762. #1027 covers this prompt getting stuck after unloading its wallet; this case happens within the same wallet and broadcasts the replacement.