aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWarren Togami <[email protected]>2017-04-13 20:11:42 -0700
committerWarren Togami <[email protected]>2017-04-13 20:11:42 -0700
commitc9e31c36ffacedb85d4d9ce75a92e011a3e7d4b4 (patch)
tree3f0d2cce7d6b704c63e74bc9e5adec2973ff0fce /src
parentMerge #9480: De-duplicate SignatureCacheHasher (diff)
downloaddiscoin-c9e31c36ffacedb85d4d9ce75a92e011a3e7d4b4.tar.xz
discoin-c9e31c36ffacedb85d4d9ce75a92e011a3e7d4b4.zip
Clarify importprivkey help text with example of blank label without rescan
Occasionally I waste a lot of time not remembering that the second parameter to importprivkey must be blank if you intend to stop rescan with "false" as the third parameter.
Diffstat (limited to 'src')
-rw-r--r--src/wallet/rpcdump.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 7ff9e7ae5..231d68f22 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -95,6 +95,8 @@ UniValue importprivkey(const JSONRPCRequest& request)
+ HelpExampleCli("importprivkey", "\"mykey\"") +
"\nImport using a label and without rescan\n"
+ HelpExampleCli("importprivkey", "\"mykey\" \"testing\" false") +
+ "\nImport using default blank label and without rescan\n"
+ + HelpExampleCli("importprivkey", "\"mykey\" \"\" false") +
"\nAs a JSON-RPC call\n"
+ HelpExampleRpc("importprivkey", "\"mykey\", \"testing\", false")
);