Skip to content

Commit

Permalink
[rpc] add 'getnewaddress' hint to 'generatetoaddress' help text.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery committed Oct 23, 2018
1 parent c9f0295 commit ab9aca2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ static UniValue generatetoaddress(const JSONRPCRequest& request)
"\nExamples:\n"
"\nGenerate 11 blocks to myaddress\n"
+ HelpExampleCli("generatetoaddress", "11 \"myaddress\"")
+ "If you are running the bitcoin core wallet, you can get a new address to send the newly generated bitcoin to with:\n"
+ HelpExampleCli("getnewaddress", "")
);

int nGenerate = request.params[0].get_int();
Expand Down

0 comments on commit ab9aca2

Please sign in to comment.