Send: Empty Manual coin selection still chooses inputs automatically #1001

Open
opened 2026-10-12 05:03:57 +00:00 by jarolrod · 1 comment
jarolrod commented 2026-10-12 05:03:57 +00:00 (Migrated from github.com)

Selecting Manual with no coins selected leaves Review enabled. The GUI says “No inputs selected,” but reviewing the transaction automatically chooses an input.

To reproduce:

  1. Open Send in a disposable regtest wallet with mature spendable funds and a working fee estimate or fallback fee.
  2. Enter a valid destination and 1 BTC. Wait for the fee preview.
  3. Select Coin control → Manual without selecting any coins.
  4. Confirm that the form says “No inputs selected.”
  5. Click Review and save the prepared transaction as a PSBT.
  6. Decode the PSBT and inspect its inputs.

My reproduction had zero manually selected coins, but the prepared PSBT contained one automatically selected input.

Manual mode should require a selection before Review, or visibly return to Automatic before preparing the transaction. The displayed mode should match how the inputs are selected.

Tested on qt6 at 09c6de77d7f36bf7fa07c354ebeea51105c447a3, macOS arm64, Qt 6.9.0. I drove the offscreen GUI through the existing test bridge with a real wallet and decoded the exported PSBT through Core RPC. No transaction was broadcast.

Related to #923. Closed #739 concerns a nonempty manual selection.

Selecting Manual with no coins selected leaves Review enabled. The GUI says “No inputs selected,” but reviewing the transaction automatically chooses an input. To reproduce: 1. Open Send in a disposable regtest wallet with mature spendable funds and a working fee estimate or fallback fee. 2. Enter a valid destination and 1 BTC. Wait for the fee preview. 3. Select Coin control → Manual without selecting any coins. 4. Confirm that the form says “No inputs selected.” 5. Click Review and save the prepared transaction as a PSBT. 6. Decode the PSBT and inspect its inputs. My reproduction had zero manually selected coins, but the prepared PSBT contained one automatically selected input. Manual mode should require a selection before Review, or visibly return to Automatic before preparing the transaction. The displayed mode should match how the inputs are selected. Tested on `qt6` at `09c6de77d7f36bf7fa07c354ebeea51105c447a3`, macOS arm64, Qt 6.9.0. I drove the offscreen GUI through the existing test bridge with a real wallet and decoded the exported PSBT through Core RPC. No transaction was broadcast. Related to #923. Closed #739 concerns a nonempty manual selection.
jarolrod commented 2026-11-05 14:31:18 +00:00 (Migrated from github.com)

This also happens after starting with a valid manual selection, and it can substantially increase an existing payment.

Locking the last selected coin through the GUI leaves Manual selected but changes Use maximum to use other wallet funds. In my reproduction, the amount increased from 0.39999749 BTC to 1.99999890 BTC, using a previously unselected 2 BTC coin.

Steps to reproduce

  1. Use a funded regtest wallet with a smaller spendable coin and a larger one.
  2. In Send, enter an external destination, choose Manual, select only the smaller coin, and click Use maximum.
  3. Open Wallet settings → View coins.
  4. Use Select coins to mark the coin selected by the payment draft, then click Lock coins.
  5. Return to Send. It still shows Manual with no inputs selected, but the amount now uses the other available funds.
  6. Click Review Transaction.

Review displays Use all available funds?. Accepting that warning reaches a review showing the larger payment and the previously unselected input. The warning and final review show the increase correctly; I stopped without sending.

Locking an unselected coin instead leaves the selected-coin maximum unchanged. Spending the last selected coin from another client also reaches the same fallback.

The QML coin-control policy allows other inputs whenever the selected set becomes empty, without preserving the distinction between Automatic and an empty Manual selection.

Losing the last manually selected input should leave the payment requiring a new selection. Locking a coin should exclude it without expanding the payment to other wallet funds.

Reproduced through the native GUI on qt6 at d567e3eb2497, macOS arm64, Qt 6.9.0, using disposable regtest wallets.

This also happens after starting with a valid manual selection, and it can substantially increase an existing payment. Locking the last selected coin through the GUI leaves **Manual** selected but changes **Use maximum** to use other wallet funds. In my reproduction, the amount increased from `0.39999749 BTC` to `1.99999890 BTC`, using a previously unselected 2 BTC coin. **Steps to reproduce** 1. Use a funded regtest wallet with a smaller spendable coin and a larger one. 2. In Send, enter an external destination, choose **Manual**, select only the smaller coin, and click **Use maximum**. 3. Open **Wallet settings → View coins**. 4. Use **Select coins** to mark the coin selected by the payment draft, then click **Lock coins**. 5. Return to Send. It still shows Manual with no inputs selected, but the amount now uses the other available funds. 6. Click **Review Transaction**. Review displays **Use all available funds?**. Accepting that warning reaches a review showing the larger payment and the previously unselected input. The warning and final review show the increase correctly; I stopped without sending. Locking an unselected coin instead leaves the selected-coin maximum unchanged. Spending the last selected coin from another client also reaches the same fallback. The QML coin-control policy allows other inputs whenever the selected set becomes empty, without preserving the distinction between Automatic and an empty Manual selection. Losing the last manually selected input should leave the payment requiring a new selection. Locking a coin should exclude it without expanding the payment to other wallet funds. Reproduced through the native GUI on `qt6` at `d567e3eb2497`, macOS arm64, Qt 6.9.0, using disposable regtest wallets.
Sign in to join this conversation.
No description provided.