mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Wallet picker shows one wallet twice when its name ends in / #1101
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1101
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Creating a wallet with a name ending in
/makes the wallet picker show two entries for the same database: one open and one closed. Selecting the closed entry attempts to open the already-loaded wallet and produces a database-lock error.Related completed wallet-picker work: #698 and #571. Both are closed, so this reports the remaining case separately.
To reproduce:
trail2/.trail2/under Open wallets andtrail2under Closed wallets.trail2entry. Opening fails with “Unable to obtain an exclusive lock on the database,” and the row shows an error.trail2/remains the wallet's startup name. Both entries return, and selecting the closed twin produces the same error.Core's
listwalletsreports the loaded name astrail2/, whilelistwalletdirreports the directory astrail2.WalletListModelcombines those lists using exact string equality, so it treats the two names as separate wallets. Core correctly refuses the second attempt to open the same database; QML incorrectly offers it as a closed wallet.The picker should identify the accepted wallet name consistently and show one entry with the correct loaded state.
The original wallet remains usable. Closing
trail2/and reopening it astrail2restores a single healthy entry. Plain names and names with an internal separator, such assub/nested, produced one entry in the controls.Reproduced in the native macOS GUI with Qt 6.9 at QML
d567e3eb2497/ Coredc282ff31d1c, including restart and recovery. Current merged QMLeed1f426fcb6/ Core44901d8f64cbwere checked in source and retain the same identity mismatch; this case was not rerun on that later revision.