aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorAndrew C <[email protected]>2016-03-12 11:41:51 -0500
committerAndrew C <[email protected]>2016-03-21 09:58:40 -0400
commitfe00ca758a0f1ab2db3f7441c04780630a9df11a (patch)
tree5cf334f3c99ddbb767b93aed4ee1f2ecd5ba73e4 /src/rpc/server.h
parentMerge #7692: Remove p2p alert system (diff)
downloaddiscoin-fe00ca758a0f1ab2db3f7441c04780630a9df11a.tar.xz
discoin-fe00ca758a0f1ab2db3f7441c04780630a9df11a.zip
Create generatetoaddress rpc
Creates the generatetoaddress rpc which is virtually identical to the generate rpc except that it takes an argument for the address to mine to. It does not rely on wallet functionality. The mining code shared by generate and generatetoaddress has been moved to another method to reduce duplication.
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r--src/rpc/server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h
index 38cb32e7f..35e114fee 100644
--- a/src/rpc/server.h
+++ b/src/rpc/server.h
@@ -193,6 +193,7 @@ extern UniValue listbanned(const UniValue& params, bool fHelp);
extern UniValue clearbanned(const UniValue& params, bool fHelp);
extern UniValue generate(const UniValue& params, bool fHelp);
+extern UniValue generatetoaddress(const UniValue& params, bool fHelp);
extern UniValue getnetworkhashps(const UniValue& params, bool fHelp);
extern UniValue getmininginfo(const UniValue& params, bool fHelp);
extern UniValue prioritisetransaction(const UniValue& params, bool fHelp);