Create wallet: validate wallet name availability before continuing #571

Closed
opened 2026-05-06 08:54:25 +00:00 by johnny9 · 1 comment
johnny9 commented 2026-05-06 08:54:25 +00:00 (Migrated from github.com)

Code Gap

The QML create-wallet flow accepts any syntactically valid wallet name and only surfaces duplicate-name failures after the user continues through the flow and attempts wallet creation.

Qt prevents or reports invalid create-wallet options before the expensive create step. For Preview, the QML flow should not let users invest in the password/confirmation path when the wallet name is already unavailable.

Work Needed

  • Check the wallet name against discovered wallet directory entries before leaving the name step.
  • Also account for already-loaded wallets.
  • Surface duplicate or unavailable wallet-name errors on the name page.
  • Apply the same name availability behavior to external-signer wallet creation.
  • Add coverage for available name, duplicate closed wallet, duplicate loaded wallet, and invalid name.
<!-- migrated-from: https://github.com/johnny9/BitcoinCoreAppDevelopment/issues/18 --> ## Code Gap The QML create-wallet flow accepts any syntactically valid wallet name and only surfaces duplicate-name failures after the user continues through the flow and attempts wallet creation. Qt prevents or reports invalid create-wallet options before the expensive create step. For Preview, the QML flow should not let users invest in the password/confirmation path when the wallet name is already unavailable. ## Work Needed - Check the wallet name against discovered wallet directory entries before leaving the name step. - Also account for already-loaded wallets. - Surface duplicate or unavailable wallet-name errors on the name page. - Apply the same name availability behavior to external-signer wallet creation. - Add coverage for available name, duplicate closed wallet, duplicate loaded wallet, and invalid name.
pseudoramdom commented 2026-05-11 18:29:18 +00:00 (Migrated from github.com)
I have a PR up for this - https://github.com/bitcoin-core/gui-qml/pull/686
Sign in to join this conversation.
No description provided.