@@ -78,12 +78,12 @@ UniValue getnetworkhashps(const JSONRPCRequest& request)
7878{
7979 if (request.fHelp || request.params .size () > 2 )
8080 throw runtime_error (
81- " getnetworkhashps ( blocks height )\n "
81+ " getnetworkhashps ( nblocks height )\n "
8282 " \n Returns the estimated network hashes per second based on the last n blocks.\n "
8383 " Pass in [blocks] to override # of blocks, -1 specifies since last difficulty change.\n "
8484 " Pass in [height] to estimate the network speed at the time when a certain block was found.\n "
8585 " \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 "
8787 " 2. height (numeric, optional, default=-1) To estimate at the time of the given height.\n "
8888 " \n Result:\n "
8989 " x (numeric) Hashes per second estimated\n "
@@ -150,10 +150,10 @@ UniValue generate(const JSONRPCRequest& request)
150150{
151151 if (request.fHelp || request.params .size () < 1 || request.params .size () > 2 )
152152 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 "
155155 " \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 "
157157 " 2. maxtries (numeric, optional) How many iterations to try (default = 1000000).\n "
158158 " \n Result:\n "
159159 " [ blockhashes ] (array) hashes of blocks generated\n "
@@ -186,10 +186,10 @@ UniValue generatetoaddress(const JSONRPCRequest& request)
186186{
187187 if (request.fHelp || request.params .size () < 2 || request.params .size () > 3 )
188188 throw runtime_error (
189- " generatetoaddress numblocks address (maxtries)\n "
189+ " generatetoaddress nblocks address (maxtries)\n "
190190 " \n Mine blocks immediately to a specified address (before the RPC call returns)\n "
191191 " \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 "
193193 " 2. address (string, required) The address to send the newly generated bitcoin to.\n "
194194 " 3. maxtries (numeric, optional) How many iterations to try (default = 1000000).\n "
195195 " \n Result:\n "
@@ -329,7 +329,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
329329 " https://github.com/bitcoin/bips/blob/master/bip-0145.mediawiki\n "
330330
331331 " \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 "
333333 " {\n "
334334 " \" mode\" :\" template\" (string, optional) This must be set to \" template\" , \" proposal\" (see BIP 23), or omitted\n "
335335 " \" capabilities\" :[ (array, optional) A list of strings\n "
@@ -719,7 +719,7 @@ UniValue submitblock(const JSONRPCRequest& request)
719719
720720 " \n Arguments:\n "
721721 " 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 "
723723 " {\n "
724724 " \" workid\" : \" id\" (string, optional) if the server provided a workid, it MUST be included with submissions\n "
725725 " }\n "
@@ -908,19 +908,19 @@ UniValue estimatesmartpriority(const JSONRPCRequest& request)
908908static const CRPCCommand commands[] =
909909{ // category name actor (function) okSafeMode
910910 // --------------------- ------------------------ ----------------------- ----------
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 " } },
924924};
925925
926926void RegisterMiningRPCCommands (CRPCTable &t)
0 commit comments