mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 08:03:39 +00:00
Send: switching wallets can make Use maximum and payment-request paste target the wrong recipient #1045
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#1045
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 two cases where Send shows one recipient expanded, but the action applies to another recipient after switching wallets.
Tested on
qt6at d567e3eb2497, native macOS 26.6.2 / Qt 6.9.0, using disposable regtest wallets.For Use maximum:
Recipient 1 stays at 0.1 BTC, while recipient 2 gets the maximum amount. With my fixture’s available balance of 1.23297039 BTC, recipient 2 changed from 0.2 to 1.13296590 BTC.
Clicking Review Transaction and confirming the sweep warning opens a Ready to send review with those amounts. I stopped at review.
The expected result is for recipient 1 to get the remainder after fees, while recipient 2 stays at 0.2 BTC.
For payment-request paste:
bitcoin:<third-valid-regtest-address>?amount=0.2, using an address different from both existing recipients.Recipient 2’s address is replaced and its row expands. Recipient 1’s address stays unchanged. There’s no overwrite confirmation in this case either.
Pasting into recipient 1 should apply to recipient 1 and check for conflicts against its values.
Both cases come from the expanded row getting out of sync with the wallet’s current recipient.
expandedRecipientis assigned during normal interaction and isn’t restored when the wallet changes. The editor displays its row’s recipient, but Use maximum and payment-request import use the wallet’s current recipient.We should keep those selections in sync across wallet changes and have row actions explicitly target that row’s recipient. Related to #992.