Watch-only send: review offers an unusable Send action after #935 #1047

Open
opened 2026-10-16 06:39:49 +00:00 by jarolrod · 1 comment
jarolrod commented 2026-10-16 06:39:49 +00:00 (Migrated from github.com)

I reproduced watch-only review saying Ready to send and offering an enabled Send transaction button, even though the same screen warns that the wallet doesn't have the keys to sign. Clicking Send returns This wallet cannot sign transactions. The review stays open and nothing is broadcast.

Tested on qt6 at d567e3eb2497df3be5d63f4dc1f554b3bf51f59f, using the native macOS GUI with Qt 6.9.0 and disposable regtest wallets.

To reproduce:

  1. Load a funded watch-only wallet with no external signer. For my setup, I imported the public active receive/change descriptors from a funded regtest wallet into a blank wallet with private keys disabled. getwalletinfo confirmed private_keys_enabled: false and external_signer: false.
  2. Select that wallet in the GUI and open Send.
  3. Enter another wallet's address and an amount the watch-only wallet can cover. I used 0.1 BTC with the standard fee preset.
  4. Click Review Transaction. The screen shows Ready to send, the warning about missing signing keys, and an enabled Send transaction button.
  5. Click Send transaction. It fails with This wallet cannot sign transactions.

No wallet switching or overlapping operation is needed. This happens when preparing an ordinary payment from a valid, loaded watch-only wallet.

I also checked the export path. Save transaction writes an unsigned PSBT successfully, and analyzepsbt reports next: signer. Importing that exact file back into the same wallet opens review with Send and the ready status correctly hidden. So the export workflow works; preparing the payment locally gives the review the wrong capability state.

There's some history here. #662 described this same send-vs-export problem and was closed by #750. Johnny also described the intended watch-only action in #560: export a PSBT and label the action accordingly.

Tracing the code, #750's old review explicitly hid Send for watch-only wallets. That check was still present immediately before 8515b923014e9c5cf3a5faffa58b3c0591ff0166 in #935. The replacement review uses currentTransactionCanSend without the watch-only check.

The model already set that flag unconditionally for a prepared Send draft, so that part predates #935. The redesign exposed the inconsistency by removing the UI guard. Current preparation still sets it to true, while sending rejects this wallet. The current behavior was reproduced in the GUI; the earlier behavior above was checked in source.

The existing tests cover unsigned preparation (prepareTransactionWithPrivateKeysDisabledDoesNotRequirePassword) and rejection without committing (sendTransactionWithPrivateKeysDisabledDoesNotCommit). Neither checks the prepared draft's currentTransactionCanSend value or the review's button/status visibility, so they miss this contradictory UI.

We should keep unsigned preparation and PSBT export available, but make the capability state and review actions agree. A watch-only wallet without an external signer shouldn't offer Send or claim it's ready to send. Coverage should check the model flag and the actual review controls, while preserving the separate external-signer and fully signed PSBT broadcast paths.

Related to #926. There are separate known gaps in watch-only creation/import (#954, #735, #737 and #738), but this reproduces after a valid wallet is already loaded. The earlier send behavior was explicitly handled, so those outstanding creation issues don't account for this regression.

I reproduced watch-only review saying **Ready to send** and offering an enabled **Send transaction** button, even though the same screen warns that the wallet doesn't have the keys to sign. Clicking Send returns **This wallet cannot sign transactions.** The review stays open and nothing is broadcast. Tested on `qt6` at `d567e3eb2497df3be5d63f4dc1f554b3bf51f59f`, using the native macOS GUI with Qt 6.9.0 and disposable regtest wallets. To reproduce: 1. Load a funded watch-only wallet with no external signer. For my setup, I imported the public active receive/change descriptors from a funded regtest wallet into a blank wallet with private keys disabled. `getwalletinfo` confirmed `private_keys_enabled: false` and `external_signer: false`. 2. Select that wallet in the GUI and open Send. 3. Enter another wallet's address and an amount the watch-only wallet can cover. I used 0.1 BTC with the standard fee preset. 4. Click **Review Transaction**. The screen shows **Ready to send**, the warning about missing signing keys, and an enabled **Send transaction** button. 5. Click **Send transaction**. It fails with **This wallet cannot sign transactions.** No wallet switching or overlapping operation is needed. This happens when preparing an ordinary payment from a valid, loaded watch-only wallet. I also checked the export path. **Save transaction** writes an unsigned PSBT successfully, and `analyzepsbt` reports `next: signer`. Importing that exact file back into the same wallet opens review with Send and the ready status correctly hidden. So the export workflow works; preparing the payment locally gives the review the wrong capability state. There's some history here. #662 described this same send-vs-export problem and was closed by #750. Johnny also described the intended watch-only action in [#560](https://github.com/bitcoin-core/gui-qml/issues/560#issuecomment-4343578921): export a PSBT and label the action accordingly. Tracing the code, #750's [old review explicitly hid Send for watch-only wallets](https://github.com/bitcoin-core/gui-qml/blob/deb953331bd11e57e2a7af6a3a90734d19c36589/qml/pages/wallet/SendReview.qml#L235). That check was still present immediately before `8515b923014e9c5cf3a5faffa58b3c0591ff0166` in #935. The [replacement review](https://github.com/bitcoin-core/gui-qml/blob/8515b923014e9c5cf3a5faffa58b3c0591ff0166/qml/pages/wallet/SendTransactionReview.qml#L26) uses `currentTransactionCanSend` without the watch-only check. The model already set that flag unconditionally for a prepared Send draft, so that part predates #935. The redesign exposed the inconsistency by removing the UI guard. Current [preparation still sets it to true](https://github.com/bitcoin-core/gui-qml/blob/d567e3eb2497df3be5d63f4dc1f554b3bf51f59f/qml/models/walletqmlmodel.cpp#L2372), while [sending rejects this wallet](https://github.com/bitcoin-core/gui-qml/blob/d567e3eb2497df3be5d63f4dc1f554b3bf51f59f/qml/models/walletqmlmodel.cpp#L2628). The current behavior was reproduced in the GUI; the earlier behavior above was checked in source. The existing tests cover unsigned preparation (`prepareTransactionWithPrivateKeysDisabledDoesNotRequirePassword`) and rejection without committing (`sendTransactionWithPrivateKeysDisabledDoesNotCommit`). Neither checks the prepared draft's `currentTransactionCanSend` value or the review's button/status visibility, so they miss this contradictory UI. We should keep unsigned preparation and PSBT export available, but make the capability state and review actions agree. A watch-only wallet without an external signer shouldn't offer Send or claim it's ready to send. Coverage should check the model flag and the actual review controls, while preserving the separate external-signer and fully signed PSBT broadcast paths. Related to #926. There are separate known gaps in watch-only creation/import (#954, #735, #737 and #738), but this reproduces after a valid wallet is already loaded. The earlier send behavior was explicitly handled, so those outstanding creation issues don't account for this regression.
jarolrod commented 2026-10-16 06:47:00 +00:00 (Migrated from github.com)

@pseudoramdom

@pseudoramdom
Sign in to join this conversation.
No description provided.