Skip to content

Commit 5c77db7

Browse files
jonatacktheStack
authored andcommitted
Restorewallet/createwallet help documentation fixups/improvements
1 parent a00ae31 commit 5c77db7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/wallet/rpc/backup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ RPCHelpMan listdescriptors()
18621862
RPCHelpMan backupwallet()
18631863
{
18641864
return RPCHelpMan{"backupwallet",
1865-
"\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",
18661866
{
18671867
{"destination", RPCArg::Type::STR, RPCArg::Optional::NO, "The destination directory or file"},
18681868
},
@@ -1897,7 +1897,7 @@ RPCHelpMan restorewallet()
18971897
{
18981898
return RPCHelpMan{
18991899
"restorewallet",
1900-
"\nRestore and loads a wallet from backup.\n"
1900+
"\nRestores and loads a wallet from backup.\n"
19011901
"\nThe rescan is significantly faster if a descriptor wallet is restored"
19021902
"\nand block filters are available (using startup option \"-blockfilterindex=1\").\n",
19031903
{
@@ -1909,7 +1909,7 @@ RPCHelpMan restorewallet()
19091909
RPCResult::Type::OBJ, "", "",
19101910
{
19111911
{RPCResult::Type::STR, "name", "The wallet name if restored successfully."},
1912-
{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.",
19131913
{
19141914
{RPCResult::Type::STR, "", ""},
19151915
}},

src/wallet/rpc/wallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static RPCHelpMan createwallet()
350350
RPCResult::Type::OBJ, "", "",
351351
{
352352
{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."},
353-
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to creating the wallet.",
353+
{RPCResult::Type::ARR, "warnings", /*optional=*/true, "Warning messages, if any, related to creating and loading the wallet.",
354354
{
355355
{RPCResult::Type::STR, "", ""},
356356
}},
@@ -433,7 +433,7 @@ static RPCHelpMan createwallet()
433433
static RPCHelpMan unloadwallet()
434434
{
435435
return RPCHelpMan{"unloadwallet",
436-
"Unloads the wallet referenced by the request endpoint otherwise unloads the wallet specified in the argument.\n"
436+
"Unloads the wallet referenced by the request endpoint, otherwise unloads the wallet specified in the argument.\n"
437437
"Specifying the wallet name on a wallet endpoint is invalid.",
438438
{
439439
{"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."},

0 commit comments

Comments
 (0)