You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
"\napplied to the new wallet (eg -zapwallettxes, rescan, etc).\n",
2485
2498
{
2486
2499
{"filename", RPCArg::Type::STR, RPCArg::Optional::NO, "The wallet directory or .dat file."},
2500
+
{"load_on_startup", RPCArg::Type::BOOL, /* default */"null", "Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged."},
{"passphrase", RPCArg::Type::STR, RPCArg::Optional::OMITTED, "Encrypt the wallet with this passphrase."},
2601
2617
{"avoid_reuse", RPCArg::Type::BOOL, /* default */"false", "Keep track of coin reuse, and treat dirty and clean coins differently with privacy considerations in mind."},
2602
2618
{"descriptors", RPCArg::Type::BOOL, /* default */"false", "Create a native descriptor wallet. The wallet will use descriptors internally to handle address creation"},
2619
+
{"load_on_startup", RPCArg::Type::BOOL, /* default */"null", "Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged."},
"Specifying the wallet name on a wallet endpoint is invalid.",
2670
2689
{
2671
2690
{"wallet_name", RPCArg::Type::STR, /* default */"the wallet name from the RPC request", "The name of the wallet to unload."},
2691
+
{"load_on_startup", RPCArg::Type::BOOL, /* default */"null", "Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged."},
2672
2692
},
2673
-
RPCResult{RPCResult::Type::NONE, "", ""},
2693
+
RPCResult{RPCResult::Type::OBJ, "", "", {
2694
+
{RPCResult::Type::STR, "warning", "Warning message if wallet was not unloaded cleanly."},
0 commit comments