Permalink
Browse files

Clarify importprivkey help text with example of blank label without r…

…escan

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.

Github-Pull: #10207
Rebased-From: c9e31c3
  • Loading branch information...
1 parent 33fadc2 commit 51c787dfb4963d2a59dc8944f45e065be0a06613 @wtogami wtogami committed with laanwj Apr 14, 2017
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/wallet/rpcdump.cpp
View
@@ -96,6 +96,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")
);

0 comments on commit 51c787d

Please sign in to comment.