HomePhabricator

wallet: Make -wallet setting not create wallets

Description

wallet: Make -wallet setting not create wallets

Summary:
This changes -wallet setting to only load existing wallets, not create new ones.

  • Simplifies behavior after #15454. #15454 took the big step of disabling creation of the default wallet. This PR extends it to avoid creating other wallets as well. With this change, new wallets just aren't created on startup, instead of sometimes being created, sometimes not. #15454 release notes are updated here and are simpler.

It is a bug fix and simplifies behavior of the core#15937 / core#19754 / core#15454 features

This is a backport of core#20186

Depends on D15143 and D14142

Test Plan:
ninja all check-all

With bitcoin-qt, create and load a wallet, close the program. In the file explorer rename the wallet directory. Restart bitcoin-qt and check that now the old wallet name is not recreated (in addition to the wallet with the new name) but an error message warns about it not being found. The new wallet name is now the only wallet avaialble.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D15144

Details

Provenance
Russell Yanofsky <russ@yanofsky.org>Authored on Oct 19 2020, 12:24
PiRKCommitted on Jan 12 2024, 14:29
PiRKPushed on Jan 12 2024, 14:29
Reviewer
Restricted Project
Differential Revision
D15144: wallet: Make -wallet setting not create wallets
Parents
rABC8e64a4217a97: Bump version to 0.28.8
Branches
Unknown
Tags
Unknown