diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2019-05-01 15:12:44 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-08-13 09:44:48 -0400 |
commit | 642ad31b418bbf8da06cb3641329b0810e18e55b (patch) | |
tree | ef5b18d395f7766112a330c7e126703e20bb9a27 /src/wallet/load.h | |
parent | b4d0366b47dd9b8fe29cc9a100dcdf6ca1d3cabf (diff) |
Add loadwallet and createwallet RPC load_on_startup options
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.
Diffstat (limited to 'src/wallet/load.h')
-rw-r--r-- | src/wallet/load.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/load.h b/src/wallet/load.h index ff4f5b4b23..30f1a4c90d 100644 --- a/src/wallet/load.h +++ b/src/wallet/load.h @@ -34,4 +34,10 @@ void StopWallets(); //! Close all wallets. void UnloadWallets(); +//! Add wallet name to persistent configuration so it will be loaded on startup. +bool AddWalletSetting(interfaces::Chain& chain, const std::string& wallet_name); + +//! Remove wallet name from persistent configuration so it will not be loaded on startup. +bool RemoveWalletSetting(interfaces::Chain& chain, const std::string& wallet_name); + #endif // BITCOIN_WALLET_LOAD_H |