Skip to content

Commit c9e31c3

Browse files
committed
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.
1 parent b7365f0 commit c9e31c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/rpcdump.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ UniValue importprivkey(const JSONRPCRequest& request)
9595
+ HelpExampleCli("importprivkey", "\"mykey\"") +
9696
"\nImport using a label and without rescan\n"
9797
+ HelpExampleCli("importprivkey", "\"mykey\" \"testing\" false") +
98+
"\nImport using default blank label and without rescan\n"
99+
+ HelpExampleCli("importprivkey", "\"mykey\" \"\" false") +
98100
"\nAs a JSON-RPC call\n"
99101
+ HelpExampleRpc("importprivkey", "\"mykey\", \"testing\", false")
100102
);

0 commit comments

Comments
 (0)