Send: replacing a payment draft leaves the “Use all available funds?” confirmation open #1048

Closed
opened 2026-10-16 07:49:24 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-10-16 07:49:24 +00:00 (Migrated from github.com)

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 qt6 at d567e3eb2497 and #1046 at 4c085bf95494.

  1. Use a regtest wallet with 2 BTC in spendable funds.
  2. In Send, enter an address outside that wallet, click Use maximum, then Review Transaction.
  3. Leave Use all available funds? open.
  4. Choose File → Open URI and apply 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.

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 `qt6` at `d567e3eb2497` and #1046 at `4c085bf95494`. 1. Use a regtest wallet with 2 BTC in spendable funds. 2. In Send, enter an address outside that wallet, click **Use maximum**, then **Review Transaction**. 3. Leave **Use all available funds?** open. 4. Choose **File → Open URI** and apply `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](https://github.com/bitcoin-core/gui-qml/issues/992) and [#1046](https://github.com/bitcoin-core/gui-qml/pull/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.
Sign in to join this conversation.
No description provided.