@@ -78,12 +78,12 @@ UniValue getnetworkhashps(const JSONRPCRequest& request)
78
78
{
79
79
if (request.fHelp || request.params .size () > 2 )
80
80
throw runtime_error (
81
- " getnetworkhashps ( blocks height )\n "
81
+ " getnetworkhashps ( nblocks height )\n "
82
82
" \n Returns the estimated network hashes per second based on the last n blocks.\n "
83
83
" Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change.\n "
84
84
" Pass in [height] to estimate the network speed at the time when a certain block was found.\n "
85
85
" \n Arguments:\n "
86
- " 1. blocks (numeric, optional, default=120) The number of blocks, or -1 for blocks since last difficulty change.\n "
86
+ " 1. nblocks (numeric, optional, default=120) The number of blocks, or -1 for blocks since last difficulty change.\n "
87
87
" 2. height (numeric, optional, default=-1) To estimate at the time of the given height.\n "
88
88
" \n Result:\n "
89
89
" x (numeric) Hashes per second estimated\n "
@@ -150,10 +150,10 @@ UniValue generate(const JSONRPCRequest& request)
150
150
{
151
151
if (request.fHelp || request.params .size () < 1 || request.params .size () > 2 )
152
152
throw runtime_error (
153
- " generate numblocks ( maxtries )\n "
154
- " \n Mine up to numblocks blocks immediately (before the RPC call returns)\n "
153
+ " generate nblocks ( maxtries )\n "
154
+ " \n Mine up to nblocks blocks immediately (before the RPC call returns)\n "
155
155
" \n Arguments:\n "
156
- " 1. numblocks (numeric, required) How many blocks are generated immediately.\n "
156
+ " 1. nblocks (numeric, required) How many blocks are generated immediately.\n "
157
157
" 2. maxtries (numeric, optional) How many iterations to try (default = 1000000).\n "
158
158
" \n Result:\n "
159
159
" [ blockhashes ] (array) hashes of blocks generated\n "
@@ -186,10 +186,10 @@ UniValue generatetoaddress(const JSONRPCRequest& request)
186
186
{
187
187
if (request.fHelp || request.params .size () < 2 || request.params .size () > 3 )
188
188
throw runtime_error (
189
- " generatetoaddress numblocks address (maxtries)\n "
189
+ " generatetoaddress nblocks address (maxtries)\n "
190
190
" \n Mine blocks immediately to a specified address (before the RPC call returns)\n "
191
191
" \n Arguments:\n "
192
- " 1. numblocks (numeric, required) How many blocks are generated immediately.\n "
192
+ " 1. nblocks (numeric, required) How many blocks are generated immediately.\n "
193
193
" 2. address (string, required) The address to send the newly generated bitcoin to.\n "
194
194
" 3. maxtries (numeric, optional) How many iterations to try (default = 1000000).\n "
195
195
" \n Result:\n "
@@ -329,7 +329,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
329
329
" https://github.com/bitcoin/bips/blob/master/bip-0145.mediawiki\n "
330
330
331
331
" \n Arguments:\n "
332
- " 1. TemplateRequest (json object, optional) A json object in the following spec\n "
332
+ " 1. template_request (json object, optional) A json object in the following spec\n "
333
333
" {\n "
334
334
" \" mode\" :\" template\" (string, optional) This must be set to \" template\" , \" proposal\" (see BIP 23), or omitted\n "
335
335
" \" capabilities\" :[ (array, optional) A list of strings\n "
@@ -719,7 +719,7 @@ UniValue submitblock(const JSONRPCRequest& request)
719
719
720
720
" \n Arguments:\n "
721
721
" 1. \" hexdata\" (string, required) the hex-encoded block data to submit\n "
722
- " 2. \" jsonparametersobject \" (string, optional) object of optional parameters\n "
722
+ " 2. \" parameters \" (string, optional) object of optional parameters\n "
723
723
" {\n "
724
724
" \" workid\" : \" id\" (string, optional) if the server provided a workid, it MUST be included with submissions\n "
725
725
" }\n "
@@ -908,19 +908,19 @@ UniValue estimatesmartpriority(const JSONRPCRequest& request)
908
908
static const CRPCCommand commands[] =
909
909
{ // category name actor (function) okSafeMode
910
910
// --------------------- ------------------------ ----------------------- ----------
911
- { " mining" , " getnetworkhashps" , &getnetworkhashps, true },
912
- { " mining" , " getmininginfo" , &getmininginfo, true },
913
- { " mining" , " prioritisetransaction" , &prioritisetransaction, true },
914
- { " mining" , " getblocktemplate" , &getblocktemplate, true },
915
- { " mining" , " submitblock" , &submitblock, true },
916
-
917
- { " generating" , " generate" , &generate, true },
918
- { " generating" , " generatetoaddress" , &generatetoaddress, true },
919
-
920
- { " util" , " estimatefee" , &estimatefee, true },
921
- { " util" , " estimatepriority" , &estimatepriority, true },
922
- { " util" , " estimatesmartfee" , &estimatesmartfee, true },
923
- { " util" , " estimatesmartpriority" , &estimatesmartpriority, true },
911
+ { " mining" , " getnetworkhashps" , &getnetworkhashps, true , { " nblocks " , " height " } },
912
+ { " mining" , " getmininginfo" , &getmininginfo, true , {} },
913
+ { " mining" , " prioritisetransaction" , &prioritisetransaction, true , { " txid " , " priority_delta " , " fee_delta " } },
914
+ { " mining" , " getblocktemplate" , &getblocktemplate, true , { " template_request " } },
915
+ { " mining" , " submitblock" , &submitblock, true , { " hexdata " , " parameters " } },
916
+
917
+ { " generating" , " generate" , &generate, true , { " nblocks " , " maxtries " } },
918
+ { " generating" , " generatetoaddress" , &generatetoaddress, true , { " nblocks " , " address " , " maxtries " } },
919
+
920
+ { " util" , " estimatefee" , &estimatefee, true , { " nblocks " } },
921
+ { " util" , " estimatepriority" , &estimatepriority, true , { " nblocks " } },
922
+ { " util" , " estimatesmartfee" , &estimatesmartfee, true , { " nblocks " } },
923
+ { " util" , " estimatesmartpriority" , &estimatesmartpriority, true , { " nblocks " } },
924
924
};
925
925
926
926
void RegisterMiningRPCCommands (CRPCTable &t)
0 commit comments