diff options
| author | Warren Togami <[email protected]> | 2017-04-13 20:11:42 -0700 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-04-20 08:18:50 +0200 |
| commit | 51c787dfb4963d2a59dc8944f45e065be0a06613 (patch) | |
| tree | 1184248f3bf1ec7210818ceeca537ac659c79bec /src | |
| parent | doc: Update release notes pre-rc2 (diff) | |
| download | discoin-51c787dfb4963d2a59dc8944f45e065be0a06613.tar.xz discoin-51c787dfb4963d2a59dc8944f45e065be0a06613.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.
Github-Pull: #10207
Rebased-From: c9e31c36ffacedb85d4d9ce75a92e011a3e7d4b4
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/rpcdump.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 20a3cbda1..cfb53af49 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -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") ); |