aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcwallet.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-04-23 13:14:34 -0400
committerJohn Newbery <john@johnnewbery.com>2018-05-31 17:10:20 -0400
commitf7e153e95f08e662427e8e4abcac8f53ab58281b (patch)
treeb25746903d8976438e61c275e32138a2989eb29e /src/wallet/rpcwallet.cpp
parent32167e8300894db700e8da2e066e3c0eeb1a293e (diff)
downloadbitcoin-f7e153e95f08e662427e8e4abcac8f53ab58281b.tar.xz
[wallets] [docs] Add release notes for createwallet RPC.
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r--src/wallet/rpcwallet.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index 5fb0501c99..456f08bc14 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3116,21 +3116,22 @@ UniValue loadwallet(const JSONRPCRequest& request)
UniValue createwallet(const JSONRPCRequest& request)
{
- if (request.fHelp || request.params.size() != 1)
+ if (request.fHelp || request.params.size() != 1) {
throw std::runtime_error(
"createwallet \"wallet_name\"\n"
"\nCreates and loads a new wallet.\n"
"\nArguments:\n"
- "1. \"wallet_name\" (string, required) The name for the new wallet.\n"
+ "1. \"wallet_name\" (string, required) The name for the new wallet. If this is a path, the wallet will be created at the path location.\n"
"\nResult:\n"
"{\n"
- " \"name\" : <wallet_name>, (string) The wallet name if created successfully.\n"
+ " \"name\" : <wallet_name>, (string) The wallet name if created successfully. If the wallet was created using a full path, the wallet_name will be the full path.\n"
" \"warning\" : <warning>, (string) Warning message if wallet was not loaded cleanly.\n"
"}\n"
"\nExamples:\n"
- + HelpExampleCli("createwallet", "\"test.dat\"")
- + HelpExampleRpc("createwallet", "\"test.dat\"")
+ + HelpExampleCli("createwallet", "\"testwallet\"")
+ + HelpExampleRpc("createwallet", "\"testwallet\"")
);
+ }
std::string wallet_name = request.params[0].get_str();
std::string error;
std::string warning;
@@ -4361,7 +4362,7 @@ static const CRPCCommand commands[] =
{ "hidden", "addwitnessaddress", &addwitnessaddress, {"address","p2sh"} },
{ "wallet", "backupwallet", &backupwallet, {"destination"} },
{ "wallet", "bumpfee", &bumpfee, {"txid", "options"} },
- { "wallet", "createwallet", &createwallet, {"filename"} },
+ { "wallet", "createwallet", &createwallet, {"wallet_name"} },
{ "wallet", "dumpprivkey", &dumpprivkey, {"address"} },
{ "wallet", "dumpwallet", &dumpwallet, {"filename"} },
{ "wallet", "encryptwallet", &encryptwallet, {"passphrase"} },