Skip to content

Commit ab9aca2

Browse files
committed
[rpc] add 'getnewaddress' hint to 'generatetoaddress' help text.
1 parent c9f0295 commit ab9aca2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/mining.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ static UniValue generatetoaddress(const JSONRPCRequest& request)
167167
"\nExamples:\n"
168168
"\nGenerate 11 blocks to myaddress\n"
169169
+ HelpExampleCli("generatetoaddress", "11 \"myaddress\"")
170+
+ "If you are running the bitcoin core wallet, you can get a new address to send the newly generated bitcoin to with:\n"
171+
+ HelpExampleCli("getnewaddress", "")
170172
);
171173

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

0 commit comments

Comments
 (0)