Browse Source

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.

Github-Pull: #10207
Rebased-From: c9e31c36ff
0.14
Warren Togami 8 years ago committed by Wladimir J. van der Laan
parent
commit
51c787dfb4
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/wallet/rpcdump.cpp

2
src/wallet/rpcdump.cpp

@ -96,6 +96,8 @@ UniValue importprivkey(const JSONRPCRequest& request)
+ HelpExampleCli("importprivkey", "\"mykey\"") + + HelpExampleCli("importprivkey", "\"mykey\"") +
"\nImport using a label and without rescan\n" "\nImport using a label and without rescan\n"
+ HelpExampleCli("importprivkey", "\"mykey\" \"testing\" false") + + HelpExampleCli("importprivkey", "\"mykey\" \"testing\" false") +
"\nImport using default blank label and without rescan\n"
+ HelpExampleCli("importprivkey", "\"mykey\" \"\" false") +
"\nAs a JSON-RPC call\n" "\nAs a JSON-RPC call\n"
+ HelpExampleRpc("importprivkey", "\"mykey\", \"testing\", false") + HelpExampleRpc("importprivkey", "\"mykey\", \"testing\", false")
); );

Loading…
Cancel
Save