mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
[rpc] add 'getnewaddress' hint to 'generatetoaddress' help text.
This commit is contained in:
@@ -167,6 +167,8 @@ static UniValue generatetoaddress(const JSONRPCRequest& request)
|
|||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
"\nGenerate 11 blocks to myaddress\n"
|
"\nGenerate 11 blocks to myaddress\n"
|
||||||
+ HelpExampleCli("generatetoaddress", "11 \"myaddress\"")
|
+ 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();
|
int nGenerate = request.params[0].get_int();
|
||||||
|
|||||||
Reference in New Issue
Block a user