aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/mining.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2018-10-23 08:32:00 -0400
committerJohn Newbery <john@johnnewbery.com>2018-10-23 08:32:00 -0400
commitab9aca2bdfe68fcd512955ed2c4d706933088528 (patch)
treeb514b22f6aac843a7926d14e49f3c18eceec1afc /src/rpc/mining.cpp
parentc9f02955b2e9062808a9455c4ee7d52cf401eef5 (diff)
[rpc] add 'getnewaddress' hint to 'generatetoaddress' help text.
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r--src/rpc/mining.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
index d5fb0db752..a47ae34b40 100644
--- a/src/rpc/mining.cpp
+++ b/src/rpc/mining.cpp
@@ -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();