@@ -232,12 +232,12 @@ UniValue waitforblock(const JSONRPCRequest& request)
232
232
{
233
233
if (request.fHelp || request.params .size () < 1 || request.params .size () > 2 )
234
234
throw runtime_error (
235
- " waitforblock <hash > (timeout)\n "
235
+ " waitforblock <blockhash > (timeout)\n "
236
236
" \n Waits for a specific new block and returns useful info about it.\n "
237
237
" \n Returns the current block on timeout or exit.\n "
238
238
" \n Arguments:\n "
239
- " 1. hash ( string) Block hash to wait for.\n "
240
- " 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout.\n "
239
+ " 1. \" blockhash \" (required, string) Block hash to wait for.\n "
240
+ " 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout.\n "
241
241
" \n Result:\n "
242
242
" { (json object)\n "
243
243
" \" hash\" : { (string) The blockhash\n "
@@ -274,12 +274,12 @@ UniValue waitforblockheight(const JSONRPCRequest& request)
274
274
{
275
275
if (request.fHelp || request.params .size () < 1 || request.params .size () > 2 )
276
276
throw runtime_error (
277
- " waitforblockheight <blockheight > (timeout)\n "
277
+ " waitforblockheight <height > (timeout)\n "
278
278
" \n Waits for (at least) block height and returns the height and hash\n "
279
279
" of the current tip.\n "
280
280
" \n Returns the current block on timeout or exit.\n "
281
281
" \n Arguments:\n "
282
- " 1. block height to wait for (int)\n "
282
+ " 1. height (required, int) Block height to wait for (int)\n "
283
283
" 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout.\n "
284
284
" \n Result:\n "
285
285
" { (json object)\n "
@@ -418,7 +418,7 @@ UniValue getrawmempool(const JSONRPCRequest& request)
418
418
" getrawmempool ( verbose )\n "
419
419
" \n Returns all transaction ids in memory pool as a json array of string transaction ids.\n "
420
420
" \n Arguments:\n "
421
- " 1. verbose (boolean, optional, default=false) true for a json object, false for array of transaction ids\n "
421
+ " 1. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids\n "
422
422
" \n Result: (for verbose = false):\n "
423
423
" [ (json array of string)\n "
424
424
" \" transactionid\" (string) The transaction id\n "
@@ -449,8 +449,8 @@ UniValue getmempoolancestors(const JSONRPCRequest& request)
449
449
" getmempoolancestors txid (verbose)\n "
450
450
" \n If txid is in the mempool, returns all in-mempool ancestors.\n "
451
451
" \n Arguments:\n "
452
- " 1. \" txid\" (string, required) The transaction id (must be in mempool)\n "
453
- " 2. verbose (boolean, optional, default=false) true for a json object, false for array of transaction ids\n "
452
+ " 1. \" txid\" (string, required) The transaction id (must be in mempool)\n "
453
+ " 2. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids\n "
454
454
" \n Result (for verbose=false):\n "
455
455
" [ (json array of strings)\n "
456
456
" \" transactionid\" (string) The transaction id of an in-mempool ancestor transaction\n "
@@ -513,8 +513,8 @@ UniValue getmempooldescendants(const JSONRPCRequest& request)
513
513
" getmempooldescendants txid (verbose)\n "
514
514
" \n If txid is in the mempool, returns all in-mempool descendants.\n "
515
515
" \n Arguments:\n "
516
- " 1. \" txid\" (string, required) The transaction id (must be in mempool)\n "
517
- " 2. verbose (boolean, optional, default=false) true for a json object, false for array of transaction ids\n "
516
+ " 1. \" txid\" (string, required) The transaction id (must be in mempool)\n "
517
+ " 2. verbose (boolean, optional, default=false) True for a json object, false for array of transaction ids\n "
518
518
" \n Result (for verbose=false):\n "
519
519
" [ (json array of strings)\n "
520
520
" \" transactionid\" (string) The transaction id of an in-mempool descendant transaction\n "
@@ -607,10 +607,10 @@ UniValue getblockhash(const JSONRPCRequest& request)
607
607
{
608
608
if (request.fHelp || request.params .size () != 1 )
609
609
throw runtime_error (
610
- " getblockhash index \n "
611
- " \n Returns hash of block in best-block-chain at index provided.\n "
610
+ " getblockhash height \n "
611
+ " \n Returns hash of block in best-block-chain at height provided.\n "
612
612
" \n Arguments:\n "
613
- " 1. index (numeric, required) The block index\n "
613
+ " 1. height (numeric, required) The height index\n "
614
614
" \n Result:\n "
615
615
" \" hash\" (string) The block hash\n "
616
616
" \n Examples:\n "
@@ -691,12 +691,12 @@ UniValue getblock(const JSONRPCRequest& request)
691
691
{
692
692
if (request.fHelp || request.params .size () < 1 || request.params .size () > 2 )
693
693
throw runtime_error (
694
- " getblock \" hash \" ( verbose )\n "
694
+ " getblock \" blockhash \" ( verbose )\n "
695
695
" \n If verbose is false, returns a string that is serialized, hex-encoded data for block 'hash'.\n "
696
696
" If verbose is true, returns an Object with information about block <hash>.\n "
697
697
" \n Arguments:\n "
698
- " 1. \" hash \" (string, required) The block hash\n "
699
- " 2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data\n "
698
+ " 1. \" blockhash \" (string, required) The block hash\n "
699
+ " 2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data\n "
700
700
" \n Result (for verbose = true):\n "
701
701
" {\n "
702
702
" \" hash\" : \" hash\" , (string) the block hash (same as provided)\n "
@@ -1257,12 +1257,12 @@ UniValue preciousblock(const JSONRPCRequest& request)
1257
1257
{
1258
1258
if (request.fHelp || request.params .size () != 1 )
1259
1259
throw runtime_error (
1260
- " preciousblock \" hash \"\n "
1260
+ " preciousblock \" blockhash \"\n "
1261
1261
" \n Treats a block as if it were received before others with the same work.\n "
1262
1262
" \n A later preciousblock call can override the effect of an earlier one.\n "
1263
1263
" \n The effects of preciousblock are not retained across restarts.\n "
1264
1264
" \n Arguments:\n "
1265
- " 1. hash (string, required) the hash of the block to mark as precious\n "
1265
+ " 1. \" blockhash \" (string, required) the hash of the block to mark as precious\n "
1266
1266
" \n Result:\n "
1267
1267
" \n Examples:\n "
1268
1268
+ HelpExampleCli (" preciousblock" , " \" blockhash\" " )
@@ -1295,10 +1295,10 @@ UniValue invalidateblock(const JSONRPCRequest& request)
1295
1295
{
1296
1296
if (request.fHelp || request.params .size () != 1 )
1297
1297
throw runtime_error (
1298
- " invalidateblock \" hash \"\n "
1298
+ " invalidateblock \" blockhash \"\n "
1299
1299
" \n Permanently marks a block as invalid, as if it violated a consensus rule.\n "
1300
1300
" \n Arguments:\n "
1301
- " 1. hash (string, required) the hash of the block to mark as invalid\n "
1301
+ " 1. \" blockhash \" (string, required) the hash of the block to mark as invalid\n "
1302
1302
" \n Result:\n "
1303
1303
" \n Examples:\n "
1304
1304
+ HelpExampleCli (" invalidateblock" , " \" blockhash\" " )
@@ -1333,11 +1333,11 @@ UniValue reconsiderblock(const JSONRPCRequest& request)
1333
1333
{
1334
1334
if (request.fHelp || request.params .size () != 1 )
1335
1335
throw runtime_error (
1336
- " reconsiderblock \" hash \"\n "
1336
+ " reconsiderblock \" blockhash \"\n "
1337
1337
" \n Removes invalidity status of a block and its descendants, reconsider them for activation.\n "
1338
1338
" This can be used to undo the effects of invalidateblock.\n "
1339
1339
" \n Arguments:\n "
1340
- " 1. hash (string, required) the hash of the block to reconsider\n "
1340
+ " 1. \" blockhash \" (string, required) the hash of the block to reconsider\n "
1341
1341
" \n Result:\n "
1342
1342
" \n Examples:\n "
1343
1343
+ HelpExampleCli (" reconsiderblock" , " \" blockhash\" " )
@@ -1372,9 +1372,9 @@ static const CRPCCommand commands[] =
1372
1372
{ " blockchain" , " getblockchaininfo" , &getblockchaininfo, true , {} },
1373
1373
{ " blockchain" , " getbestblockhash" , &getbestblockhash, true , {} },
1374
1374
{ " blockchain" , " getblockcount" , &getblockcount, true , {} },
1375
- { " blockchain" , " getblock" , &getblock, true , {" hash " ," verbose" } },
1376
- { " blockchain" , " getblockhash" , &getblockhash, true , {" index " } },
1377
- { " blockchain" , " getblockheader" , &getblockheader, true , {" hash " ," verbose" } },
1375
+ { " blockchain" , " getblock" , &getblock, true , {" blockhash " ," verbose" } },
1376
+ { " blockchain" , " getblockhash" , &getblockhash, true , {" height " } },
1377
+ { " blockchain" , " getblockheader" , &getblockheader, true , {" blockhash " ," verbose" } },
1378
1378
{ " blockchain" , " getchaintips" , &getchaintips, true , {} },
1379
1379
{ " blockchain" , " getdifficulty" , &getdifficulty, true , {} },
1380
1380
{ " blockchain" , " getmempoolancestors" , &getmempoolancestors, true , {" txid" ," verbose" } },
@@ -1386,13 +1386,13 @@ static const CRPCCommand commands[] =
1386
1386
{ " blockchain" , " gettxoutsetinfo" , &gettxoutsetinfo, true , {} },
1387
1387
{ " blockchain" , " verifychain" , &verifychain, true , {" checklevel" ," nblocks" } },
1388
1388
1389
- { " blockchain" , " preciousblock" , &preciousblock, true , {" hash " } },
1389
+ { " blockchain" , " preciousblock" , &preciousblock, true , {" blockhash " } },
1390
1390
1391
1391
/* Not shown in help */
1392
- { " hidden" , " invalidateblock" , &invalidateblock, true , {" hash " } },
1393
- { " hidden" , " reconsiderblock" , &reconsiderblock, true , {" hash " } },
1392
+ { " hidden" , " invalidateblock" , &invalidateblock, true , {" blockhash " } },
1393
+ { " hidden" , " reconsiderblock" , &reconsiderblock, true , {" blockhash " } },
1394
1394
{ " hidden" , " waitfornewblock" , &waitfornewblock, true , {" timeout" } },
1395
- { " hidden" , " waitforblock" , &waitforblock, true , {" hash " ," timeout" } },
1395
+ { " hidden" , " waitforblock" , &waitforblock, true , {" blockhash " ," timeout" } },
1396
1396
{ " hidden" , " waitforblockheight" , &waitforblockheight, true , {" height" ," timeout" } },
1397
1397
};
1398
1398
0 commit comments