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 bitcoin/bitcoin#27757: rpc: remove deprecated "warning" field from {create,load,restore,unload}wallet
5524fa0 doc: add release note about removal of `deprecatedrpc=walletwarningfield` flag (Sebastian Falbesoner)
5c77db7 Restorewallet/createwallet help documentation fixups/improvements (Jon Atack)
a00ae31 rpc: remove deprecated "warning" field from {create,load,restore,unload}wallet (Sebastian Falbesoner)
Pull request description:
The "warning" string field for wallet creating/loading RPCs (`createwallet`, `loadwallet`, `unloadwallet` and `restorewallet`) has been deprecated with the configuration option `-deprecatedrpc=walletwarningfield` in PR #27279 (released in v25.0). For the next release v26.0, the field and the configuration option can be removed.
ACKs for top commit:
achow101:
ACK 5524fa0
jonatack:
ACK 5524fa0
Tree-SHA512: 8212f72067d08095304018b8a95d2ebef630004b65123483fbbfb078cc5709c2d825bbc35b16ea5f6b28ae7377347382d7e9afaf7bdbf0575d2c229d970784de
"\nSafely copies current wallet file to destination, which can be a directory or a path with filename.\n",
1865
+
"\nSafely copies the current wallet file to the specified destination, which can either be a directory or a path with a filename.\n",
1866
1866
{
1867
1867
{"destination", RPCArg::Type::STR, RPCArg::Optional::NO, "The destination directory or file"},
1868
1868
},
@@ -1897,7 +1897,7 @@ RPCHelpMan restorewallet()
1897
1897
{
1898
1898
return RPCHelpMan{
1899
1899
"restorewallet",
1900
-
"\nRestore and loads a wallet from backup.\n"
1900
+
"\nRestores and loads a wallet from backup.\n"
1901
1901
"\nThe rescan is significantly faster if a descriptor wallet is restored"
1902
1902
"\nand block filters are available (using startup option \"-blockfilterindex=1\").\n",
1903
1903
{
@@ -1909,8 +1909,7 @@ RPCHelpMan restorewallet()
1909
1909
RPCResult::Type::OBJ, "", "",
1910
1910
{
1911
1911
{RPCResult::Type::STR, "name", "The wallet name if restored successfully."},
1912
-
{RPCResult::Type::STR, "warning", /*optional=*/true, "Warning messages, if any, related to restoring the wallet. Multiple messages will be delimited by newlines. (DEPRECATED, returned only if config option -deprecatedrpc=walletwarningfield is passed.)"},
1913
-
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to restoring the wallet.",
1912
+
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to restoring and loading the wallet.",
1914
1913
{
1915
1914
{RPCResult::Type::STR, "", ""},
1916
1915
}},
@@ -1943,9 +1942,6 @@ RPCHelpMan restorewallet()
1943
1942
1944
1943
UniValue obj(UniValue::VOBJ);
1945
1944
obj.pushKV("name", wallet->GetName());
1946
-
if (wallet->chain().rpcEnableDeprecated("walletwarningfield")) {
{RPCResult::Type::STR, "name", "The wallet name if loaded successfully."},
224
-
{RPCResult::Type::STR, "warning", /*optional=*/true, "Warning messages, if any, related to loading the wallet. Multiple messages will be delimited by newlines. (DEPRECATED, returned only if config option -deprecatedrpc=walletwarningfield is passed.)"},
225
224
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to loading the wallet.",
{RPCResult::Type::STR, "name", "The wallet name if created successfully. If the wallet was created using a full path, the wallet_name will be the full path."},
359
-
{RPCResult::Type::STR, "warning", /*optional=*/true, "Warning messages, if any, related to creating the wallet. Multiple messages will be delimited by newlines. (DEPRECATED, returned only if config option -deprecatedrpc=walletwarningfield is passed.)"},
360
-
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to creating the wallet.",
355
+
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to creating and loading the wallet.",
"Unloads the wallet referenced by the request endpoint otherwise unloads the wallet specified in the argument.\n"
438
+
"Unloads the wallet referenced by the request endpoint, otherwise unloads the wallet specified in the argument.\n"
447
439
"Specifying the wallet name on a wallet endpoint is invalid.",
448
440
{
449
441
{"wallet_name", RPCArg::Type::STR, RPCArg::DefaultHint{"the wallet name from the RPC endpoint"}, "The name of the wallet to unload. If provided both here and in the RPC endpoint, the two must be identical."},
450
442
{"load_on_startup", RPCArg::Type::BOOL, RPCArg::Optional::OMITTED, "Save wallet name to persistent settings and load on startup. True to add wallet to startup list, false to remove, null to leave unchanged."},
451
443
},
452
444
RPCResult{RPCResult::Type::OBJ, "", "", {
453
-
{RPCResult::Type::STR, "warning", /*optional=*/true, "Warning messages, if any, related to unloading the wallet. Multiple messages will be delimited by newlines. (DEPRECATED, returned only if config option -deprecatedrpc=walletwarningfield is passed.)"},
454
445
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to unloading the wallet.",
0 commit comments