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
Merge #15937: Add loadwallet and createwallet load_on_startup options
642ad31 Add loadwallet and createwallet RPC load_on_startup options (Russell Yanofsky)
Pull request description:
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, but it's reasonable to expose this feature by RPC as well.
ACKs for top commit:
achow101:
re-ACK 642ad31 Only change is the test
meshcollider:
re-utACK 642ad31
Tree-SHA512: cca0b71bf1a83ad071830e6c459f1cd979b4add7144e899ec560da72b5910dd9bf9426e5c7d125ae96fad8990fbf81a76bc83c0459486c16086ada6cbde5eaa3
"\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