mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Send: replacing a payment draft leaves the “Use all available funds?” confirmation open #1048
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#1048
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 replace a payment draft while its confirmation is open, then end up with a warning that calls a small payment “all available funds.”
Reproduced on native macOS / Qt 6.9.0, on
qt6atd567e3eb2497and #1046 at4c085bf95494.bitcoin:<another-valid-regtest-address>?amount=0.1.The draft changes to 0.1 BTC, but the old confirmation stays open and says “You’re preparing to send all available funds (0.10000000 BTC).” The wallet still has 2 BTC.
Clicking Use maximum in that warning opens the replacement’s 0.1 BTC review. The review shows the correct amount; I stopped there and nothing was broadcast. No wallet switch or timing race is needed.
The warning’s amount follows the live draft, but replacing the draft doesn’t invalidate the confirmation. We should close it when another payment replaces the draft and reject any stale confirmation action, so the user starts a fresh review.
Related to #992 and #1046. #1046 already changes this popup, so including this there seems reasonable if it fits as a small fix with a regression test. It would extend this guard to cover draft replacement within the same wallet.
This predates #1046, and the subsequent review still shows the correct payment. I don’t think it needs to hold up that PR; a separate follow-up using the new context mechanism would be fine too.