mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Send: moving Use maximum to a second recipient leaves the first with the old maximum and blocks Review #1115
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#1115
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?
With two recipients, clicking Use maximum on the second after using it on the first leaves the first recipient holding the old maximum as a fixed amount. The second recipient gets no amount, and Review is disabled with a message that does not say which recipient is the problem.
To reproduce on regtest, with a 150 BTC wallet and Automatic coin selection:
Afterwards:
Nothing marks recipient 1's amount as left over from maximum mode. The same happens if Use maximum is clicked on recipient 1 while it still has no address at the handover; it then keeps the gross 150.00000000.
Ways out that I tried:
sendall, and both recipients were paid exactly that.These controls reviewed normally and matched Core: two recipients with fixed amounts, one recipient with Use maximum, and Use maximum on recipient 2 only.
setMaximumRecipientmoves its connections to the new recipient and never resets the previous recipient's amount (walletqmlmodel.cpp#L803-L820). That stale amount is the whole balance less a one-output fee, so the two-output maximum preview cannot fit it (#L343-L345) and returns nothing.Expected: when maximum mode moves to another recipient, clear the previous recipient's amount, and make the "Complete every recipient" message point at the recipient that needs attention.
No wrong payment is possible in this state, because Review is disabled. #1077 covers failed maximum previews hiding their reason, from different triggers, and #1045 is the wallet-switch case. I found no open pull request that changes
setMaximumRecipient.Reproduced on merged
qt6ateed1f426fcb6, macOS / Qt 6.9, isolated regtest with its fixed 1 sat/vB rate, offscreen and native. I first saw it atd567e3eb2497in October; the function is unchanged since. One balance shape was tested, three 50 BTC coins. Clicks and typing went through the test bridge.