Watch only wallets can leave a wallet on disk if adding xpub fails #737

Open
opened 2026-06-01 20:22:47 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-06-01 20:22:47 +00:00 (Migrated from github.com)

Xpub creation can fail and that can mark the wallet crested as failed even though the blank wallet was created.

Originally posted by @jarolrod in https://github.com/bitcoin-core/gui-qml/pull/727#discussion_r3336236160

Xpub creation can fail and that can mark the wallet crested as failed even though the blank wallet was created. _Originally posted by @jarolrod in https://github.com/bitcoin-core/gui-qml/pull/727#discussion_r3336236160_
jarolrod commented 2026-11-06 16:50:23 +00:00 (Migrated from github.com)

There is a related external-signer case: device detection succeeds, but descriptor retrieval fails after Core has created wallet.dat. Retrying then fails because the wallet name already exists.

I reproduced this on QML qt6 at 6e54a48ab571c and independently through Core’s createwallet RPC. A working-signer control creates the wallet successfully.

bitcoin/bitcoin#36767 addresses that creation-stage failure by catching the exception and cleaning up files created by the attempt. Worth tracking that dependency here. The watch-only descriptor-import failure described in this issue occurs later and still needs its own cleanup coverage.

There is a related external-signer case: device detection succeeds, but descriptor retrieval fails after Core has created `wallet.dat`. Retrying then fails because the wallet name already exists. I reproduced this on QML `qt6` at `6e54a48ab571c` and independently through Core’s `createwallet` RPC. A working-signer control creates the wallet successfully. [bitcoin/bitcoin#36767](https://github.com/bitcoin/bitcoin/pull/36767) addresses that creation-stage failure by catching the exception and cleaning up files created by the attempt. Worth tracking that dependency here. The watch-only descriptor-import failure described in this issue occurs later and still needs its own cleanup coverage.
Sign in to join this conversation.
No description provided.