mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
642ad31b41
This maintains a persistent list of wallets stored in settings that will automatically be loaded on startup. Being able to load a wallet automatically on startup will be more useful in the GUI when the option to create wallets is added in #15006, but it's reasonable to expose this feature by RPC as well.
583 B
583 B
Configuration
The createwallet
, loadwallet
, and unloadwallet
RPCs now accept
load_on_startup
options that modify bitcoin's dynamic configuration in
\<datadir\>/settings.json
, and can add or remove a wallet from the list of
wallets automatically loaded at startup. Unless these options are explicitly
set to true or false, the load on startup wallet list is not modified, so this
change is backwards compatible.
In the future, the GUI will start updating the same startup wallet list as the RPCs to automatically reopen wallets previously opened in the GUI.