mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
PSBT import can replace another wallet’s send draft after unloading the original wallet #1012
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#1012
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 reproduced an import dialog opened for wallet A importing into B instead, replacing a draft already entered in B. Splitting this out from #992 so we can track the import fix separately.
Steps to reproduce
psbtfield returned bywalletcreatefundedpsbtand save it as a binary.psbtfile.unloadwallet "A" false. B becomes selected.B’s draft changes from 0.75 to 1.25 BTC, and the transaction review opens for B. Nothing was signed or broadcast.
The acceptance handler uses the currently selected wallet, so the pending import effectively changes wallets while the picker is open. We should invalidate it when its wallet changes or unloads, before it can touch another wallet’s draft. Switching away and back shouldn’t make an old opening valid again either.
Reproduced with native dialogs on macOS / Qt 6.9.0 at
b03cf0554841and its parent77e8005455cd, so this predates #1009. Related to #975.I'll take this