Skip to content

Commit 2264236

Browse files
committed
Rename -usewallet to -rpcwallet
1 parent d445a2c commit 2264236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bitcoin-cli.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ std::string HelpMessageCli()
4646
strUsage += HelpMessageOpt("-rpcpassword=<pw>", _("Password for JSON-RPC connections"));
4747
strUsage += HelpMessageOpt("-rpcclienttimeout=<n>", strprintf(_("Timeout in seconds during HTTP requests, or 0 for no timeout. (default: %d)"), DEFAULT_HTTP_CLIENT_TIMEOUT));
4848
strUsage += HelpMessageOpt("-stdin", _("Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases)"));
49-
strUsage += HelpMessageOpt("-usewallet=<walletname>", _("Send RPC for non-default wallet on RPC server (argument is wallet filename in bitcoind directory, required if bitcoind/-Qt runs with multiple wallets)"));
49+
strUsage += HelpMessageOpt("-rpcwallet=<walletname>", _("Send RPC for non-default wallet on RPC server (argument is wallet filename in bitcoind directory, required if bitcoind/-Qt runs with multiple wallets)"));
5050

5151
return strUsage;
5252
}
@@ -244,7 +244,7 @@ UniValue CallRPC(const std::string& strMethod, const UniValue& params)
244244

245245
// check if we should use a special wallet endpoint
246246
std::string endpoint = "/";
247-
std::string walletName = GetArg("-usewallet", "");
247+
std::string walletName = GetArg("-rpcwallet", "");
248248
if (!walletName.empty()) {
249249
char *encodedURI = evhttp_uriencode(walletName.c_str(), walletName.size(), false);
250250
if (encodedURI) {

0 commit comments

Comments
 (0)