@@ -232,11 +232,11 @@ 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 <blockhash > (timeout)\n "
235
+ " waitforblock <hash > (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. blockhash to wait for (string) \n "
239
+ " 1. hash (string) Block hash to wait for. \n "
240
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 "
@@ -858,12 +858,12 @@ UniValue gettxout(const JSONRPCRequest& request)
858
858
{
859
859
if (request.fHelp || request.params .size () < 2 || request.params .size () > 3 )
860
860
throw runtime_error (
861
- " gettxout \" txid\" n ( includemempool )\n "
861
+ " gettxout \" txid\" n ( include_mempool )\n "
862
862
" \n Returns details about an unspent transaction output.\n "
863
863
" \n Arguments:\n "
864
864
" 1. \" txid\" (string, required) The transaction id\n "
865
865
" 2. n (numeric, required) vout number\n "
866
- " 3. includemempool (boolean, optional) Whether to include the mempool\n "
866
+ " 3. include_mempool (boolean, optional) Whether to include the mempool\n "
867
867
" \n Result:\n "
868
868
" {\n "
869
869
" \" bestblock\" : \" hash\" , (string) the block hash\n "
@@ -940,11 +940,11 @@ UniValue verifychain(const JSONRPCRequest& request)
940
940
int nCheckDepth = GetArg (" -checkblocks" , DEFAULT_CHECKBLOCKS);
941
941
if (request.fHelp || request.params .size () > 2 )
942
942
throw runtime_error (
943
- " verifychain ( checklevel numblocks )\n "
943
+ " verifychain ( checklevel nblocks )\n "
944
944
" \n Verifies blockchain database.\n "
945
945
" \n Arguments:\n "
946
946
" 1. checklevel (numeric, optional, 0-4, default=" + strprintf (" %d" , nCheckLevel) + " ) How thorough the block verification is.\n "
947
- " 2. numblocks (numeric, optional, default=" + strprintf (" %d" , nCheckDepth) + " , 0=all) The number of blocks to check.\n "
947
+ " 2. nblocks (numeric, optional, default=" + strprintf (" %d" , nCheckDepth) + " , 0=all) The number of blocks to check.\n "
948
948
" \n Result:\n "
949
949
" true|false (boolean) Verified or not\n "
950
950
" \n Examples:\n "
@@ -1367,33 +1367,33 @@ UniValue reconsiderblock(const JSONRPCRequest& request)
1367
1367
}
1368
1368
1369
1369
static const CRPCCommand commands[] =
1370
- { // category name actor (function) okSafeMode
1371
- // --------------------- ------------------------ ----------------------- ----------
1372
- { " blockchain" , " getblockchaininfo" , &getblockchaininfo, true },
1373
- { " blockchain" , " getbestblockhash" , &getbestblockhash, true },
1374
- { " blockchain" , " getblockcount" , &getblockcount, true },
1375
- { " blockchain" , " getblock" , &getblock, true },
1376
- { " blockchain" , " getblockhash" , &getblockhash, true },
1377
- { " blockchain" , " getblockheader" , &getblockheader, true },
1378
- { " blockchain" , " getchaintips" , &getchaintips, true },
1379
- { " blockchain" , " getdifficulty" , &getdifficulty, true },
1380
- { " blockchain" , " getmempoolancestors" , &getmempoolancestors, true },
1381
- { " blockchain" , " getmempooldescendants" , &getmempooldescendants, true },
1382
- { " blockchain" , " getmempoolentry" , &getmempoolentry, true },
1383
- { " blockchain" , " getmempoolinfo" , &getmempoolinfo, true },
1384
- { " blockchain" , " getrawmempool" , &getrawmempool, true },
1385
- { " blockchain" , " gettxout" , &gettxout, true },
1386
- { " blockchain" , " gettxoutsetinfo" , &gettxoutsetinfo, true },
1387
- { " blockchain" , " verifychain" , &verifychain, true },
1388
-
1389
- { " blockchain" , " preciousblock" , &preciousblock, true },
1370
+ { // category name actor (function) okSafe argNames
1371
+ // --------------------- ------------------------ ----------------------- ------ ------ ----
1372
+ { " blockchain" , " getblockchaininfo" , &getblockchaininfo, true , {} },
1373
+ { " blockchain" , " getbestblockhash" , &getbestblockhash, true , {} },
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 " } },
1378
+ { " blockchain" , " getchaintips" , &getchaintips, true , {} },
1379
+ { " blockchain" , " getdifficulty" , &getdifficulty, true , {} },
1380
+ { " blockchain" , " getmempoolancestors" , &getmempoolancestors, true , { " txid " , " verbose " } },
1381
+ { " blockchain" , " getmempooldescendants" , &getmempooldescendants, true , { " txid " , " verbose " } },
1382
+ { " blockchain" , " getmempoolentry" , &getmempoolentry, true , { " txid " } },
1383
+ { " blockchain" , " getmempoolinfo" , &getmempoolinfo, true , {} },
1384
+ { " blockchain" , " getrawmempool" , &getrawmempool, true , { " verbose " } },
1385
+ { " blockchain" , " gettxout" , &gettxout, true , { " txid " , " n " , " include_mempool " } },
1386
+ { " blockchain" , " gettxoutsetinfo" , &gettxoutsetinfo, true , {} },
1387
+ { " blockchain" , " verifychain" , &verifychain, true , { " checklevel " , " nblocks " } },
1388
+
1389
+ { " blockchain" , " preciousblock" , &preciousblock, true , { " hash " } },
1390
1390
1391
1391
/* Not shown in help */
1392
- { " hidden" , " invalidateblock" , &invalidateblock, true },
1393
- { " hidden" , " reconsiderblock" , &reconsiderblock, true },
1394
- { " hidden" , " waitfornewblock" , &waitfornewblock, true },
1395
- { " hidden" , " waitforblock" , &waitforblock, true },
1396
- { " hidden" , " waitforblockheight" , &waitforblockheight, true },
1392
+ { " hidden" , " invalidateblock" , &invalidateblock, true , { " hash " } },
1393
+ { " hidden" , " reconsiderblock" , &reconsiderblock, true , { " hash " } },
1394
+ { " hidden" , " waitfornewblock" , &waitfornewblock, true , { " timeout " } },
1395
+ { " hidden" , " waitforblock" , &waitforblock, true , { " hash " , " timeout " } },
1396
+ { " hidden" , " waitforblockheight" , &waitforblockheight, true , { " height " , " timeout " } },
1397
1397
};
1398
1398
1399
1399
void RegisterBlockchainRPCCommands (CRPCTable &t)
0 commit comments