@ -232,11 +232,11 @@ UniValue waitforblock(const JSONRPCRequest& request)
{
{
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
throw runtime_error (
throw runtime_error (
" waitforblock <hash> (timeout) \n "
" waitforblock <block hash> (timeout) \n "
" \n Waits for a specific new block and returns useful info about it. \n "
" \n Waits for a specific new block and returns useful info about it. \n "
" \n Returns the current block on timeout or exit. \n "
" \n Returns the current block on timeout or exit. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. hash (string) Block hash to wait for. \n "
" 1. \" block hash\" (required, string) Block hash to wait for. \n "
" 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout. \n "
" 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout. \n "
" \n Result: \n "
" \n Result: \n "
" { (json object) \n "
" { (json object) \n "
@ -274,12 +274,12 @@ UniValue waitforblockheight(const JSONRPCRequest& request)
{
{
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
throw runtime_error (
throw runtime_error (
" waitforblockheight <block height> (timeout) \n "
" waitforblockheight <height> (timeout) \n "
" \n Waits for (at least) block height and returns the height and hash \n "
" \n Waits for (at least) block height and returns the height and hash \n "
" of the current tip. \n "
" of the current tip. \n "
" \n Returns the current block on timeout or exit. \n "
" \n Returns the current block on timeout or exit. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. b lock height to wait for (int) \n "
" 1. height (required, int) B lock height to wait for (int) \n "
" 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout. \n "
" 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout. \n "
" \n Result: \n "
" \n Result: \n "
" { (json object) \n "
" { (json object) \n "
@ -418,7 +418,7 @@ UniValue getrawmempool(const JSONRPCRequest& request)
" getrawmempool ( verbose ) \n "
" getrawmempool ( verbose ) \n "
" \n Returns all transaction ids in memory pool as a json array of string transaction ids. \n "
" \n Returns all transaction ids in memory pool as a json array of string transaction ids. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. verbose (boolean, optional, default=false) t rue for a json object, false for array of transaction ids \n "
" 1. verbose (boolean, optional, default=false) T rue for a json object, false for array of transaction ids \n "
" \n Result: (for verbose = false): \n "
" \n Result: (for verbose = false): \n "
" [ (json array of string) \n "
" [ (json array of string) \n "
" \" transactionid \" (string) The transaction id \n "
" \" transactionid \" (string) The transaction id \n "
@ -450,7 +450,7 @@ UniValue getmempoolancestors(const JSONRPCRequest& request)
" \n If txid is in the mempool, returns all in-mempool ancestors. \n "
" \n If txid is in the mempool, returns all in-mempool ancestors. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" txid \" (string, required) The transaction id (must be in mempool) \n "
" 1. \" txid \" (string, required) The transaction id (must be in mempool) \n "
" 2. verbose (boolean, optional, default=false) t rue for a json object, false for array of transaction ids \n "
" 2. verbose (boolean, optional, default=false) T rue for a json object, false for array of transaction ids \n "
" \n Result (for verbose=false): \n "
" \n Result (for verbose=false): \n "
" [ (json array of strings) \n "
" [ (json array of strings) \n "
" \" transactionid \" (string) The transaction id of an in-mempool ancestor transaction \n "
" \" transactionid \" (string) The transaction id of an in-mempool ancestor transaction \n "
@ -514,7 +514,7 @@ UniValue getmempooldescendants(const JSONRPCRequest& request)
" \n If txid is in the mempool, returns all in-mempool descendants. \n "
" \n If txid is in the mempool, returns all in-mempool descendants. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" txid \" (string, required) The transaction id (must be in mempool) \n "
" 1. \" txid \" (string, required) The transaction id (must be in mempool) \n "
" 2. verbose (boolean, optional, default=false) t rue for a json object, false for array of transaction ids \n "
" 2. verbose (boolean, optional, default=false) T rue for a json object, false for array of transaction ids \n "
" \n Result (for verbose=false): \n "
" \n Result (for verbose=false): \n "
" [ (json array of strings) \n "
" [ (json array of strings) \n "
" \" transactionid \" (string) The transaction id of an in-mempool descendant transaction \n "
" \" transactionid \" (string) The transaction id of an in-mempool descendant transaction \n "
@ -607,10 +607,10 @@ UniValue getblockhash(const JSONRPCRequest& request)
{
{
if ( request . fHelp | | request . params . size ( ) ! = 1 )
if ( request . fHelp | | request . params . size ( ) ! = 1 )
throw runtime_error (
throw runtime_error (
" getblockhash index \n "
" getblockhash height \n "
" \n Returns hash of block in best-block-chain at index provided. \n "
" \n Returns hash of block in best-block-chain at height provided. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. index (numeric, required) The block index \n "
" 1. height (numeric, required) The height index \n "
" \n Result: \n "
" \n Result: \n "
" \" hash \" (string) The block hash \n "
" \" hash \" (string) The block hash \n "
" \n Examples: \n "
" \n Examples: \n "
@ -691,11 +691,11 @@ UniValue getblock(const JSONRPCRequest& request)
{
{
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
throw runtime_error (
throw runtime_error (
" getblock \" hash \" ( verbose ) \n "
" getblock \" block hash\" ( verbose ) \n "
" \n If verbose is false, returns a string that is serialized, hex-encoded data for block 'hash'. \n "
" \n If verbose is false, returns a string that is serialized, hex-encoded data for block 'hash'. \n "
" If verbose is true, returns an Object with information about block <hash>. \n "
" If verbose is true, returns an Object with information about block <hash>. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" hash \" (string, required) The block hash \n "
" 1. \" block hash\" (string, required) The block hash \n "
" 2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data \n "
" 2. verbose (boolean, optional, default=true) true for a json object, false for the hex encoded data \n "
" \n Result (for verbose = true): \n "
" \n Result (for verbose = true): \n "
" { \n "
" { \n "
@ -1257,12 +1257,12 @@ UniValue preciousblock(const JSONRPCRequest& request)
{
{
if ( request . fHelp | | request . params . size ( ) ! = 1 )
if ( request . fHelp | | request . params . size ( ) ! = 1 )
throw runtime_error (
throw runtime_error (
" preciousblock \" hash \" \n "
" preciousblock \" block hash\" \n "
" \n Treats a block as if it were received before others with the same work. \n "
" \n Treats a block as if it were received before others with the same work. \n "
" \n A later preciousblock call can override the effect of an earlier one. \n "
" \n A later preciousblock call can override the effect of an earlier one. \n "
" \n The effects of preciousblock are not retained across restarts. \n "
" \n The effects of preciousblock are not retained across restarts. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. hash (string, required) the hash of the block to mark as precious \n "
" 1. \" block hash\" (string, required) the hash of the block to mark as precious \n "
" \n Result: \n "
" \n Result: \n "
" \n Examples: \n "
" \n Examples: \n "
+ HelpExampleCli ( " preciousblock " , " \" blockhash \" " )
+ HelpExampleCli ( " preciousblock " , " \" blockhash \" " )
@ -1295,10 +1295,10 @@ UniValue invalidateblock(const JSONRPCRequest& request)
{
{
if ( request . fHelp | | request . params . size ( ) ! = 1 )
if ( request . fHelp | | request . params . size ( ) ! = 1 )
throw runtime_error (
throw runtime_error (
" invalidateblock \" hash \" \n "
" invalidateblock \" block hash\" \n "
" \n Permanently marks a block as invalid, as if it violated a consensus rule. \n "
" \n Permanently marks a block as invalid, as if it violated a consensus rule. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. hash (string, required) the hash of the block to mark as invalid \n "
" 1. \" block hash\" (string, required) the hash of the block to mark as invalid \n "
" \n Result: \n "
" \n Result: \n "
" \n Examples: \n "
" \n Examples: \n "
+ HelpExampleCli ( " invalidateblock " , " \" blockhash \" " )
+ HelpExampleCli ( " invalidateblock " , " \" blockhash \" " )
@ -1333,11 +1333,11 @@ UniValue reconsiderblock(const JSONRPCRequest& request)
{
{
if ( request . fHelp | | request . params . size ( ) ! = 1 )
if ( request . fHelp | | request . params . size ( ) ! = 1 )
throw runtime_error (
throw runtime_error (
" reconsiderblock \" hash \" \n "
" reconsiderblock \" block hash\" \n "
" \n Removes invalidity status of a block and its descendants, reconsider them for activation. \n "
" \n Removes invalidity status of a block and its descendants, reconsider them for activation. \n "
" This can be used to undo the effects of invalidateblock. \n "
" This can be used to undo the effects of invalidateblock. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. hash (string, required) the hash of the block to reconsider \n "
" 1. \" block hash\" (string, required) the hash of the block to reconsider \n "
" \n Result: \n "
" \n Result: \n "
" \n Examples: \n "
" \n Examples: \n "
+ HelpExampleCli ( " reconsiderblock " , " \" blockhash \" " )
+ HelpExampleCli ( " reconsiderblock " , " \" blockhash \" " )
@ -1372,9 +1372,9 @@ static const CRPCCommand commands[] =
{ " blockchain " , " getblockchaininfo " , & getblockchaininfo , true , { } } ,
{ " blockchain " , " getblockchaininfo " , & getblockchaininfo , true , { } } ,
{ " blockchain " , " getbestblockhash " , & getbestblockhash , true , { } } ,
{ " blockchain " , " getbestblockhash " , & getbestblockhash , true , { } } ,
{ " blockchain " , " getblockcount " , & getblockcount , true , { } } ,
{ " blockchain " , " getblockcount " , & getblockcount , true , { } } ,
{ " blockchain " , " getblock " , & getblock , true , { " hash " , " verbose " } } ,
{ " blockchain " , " getblock " , & getblock , true , { " block hash" , " verbose " } } ,
{ " blockchain " , " getblockhash " , & getblockhash , true , { " index " } } ,
{ " blockchain " , " getblockhash " , & getblockhash , true , { " height " } } ,
{ " blockchain " , " getblockheader " , & getblockheader , true , { " hash " , " verbose " } } ,
{ " blockchain " , " getblockheader " , & getblockheader , true , { " block hash" , " verbose " } } ,
{ " blockchain " , " getchaintips " , & getchaintips , true , { } } ,
{ " blockchain " , " getchaintips " , & getchaintips , true , { } } ,
{ " blockchain " , " getdifficulty " , & getdifficulty , true , { } } ,
{ " blockchain " , " getdifficulty " , & getdifficulty , true , { } } ,
{ " blockchain " , " getmempoolancestors " , & getmempoolancestors , true , { " txid " , " verbose " } } ,
{ " blockchain " , " getmempoolancestors " , & getmempoolancestors , true , { " txid " , " verbose " } } ,
@ -1386,13 +1386,13 @@ static const CRPCCommand commands[] =
{ " blockchain " , " gettxoutsetinfo " , & gettxoutsetinfo , true , { } } ,
{ " blockchain " , " gettxoutsetinfo " , & gettxoutsetinfo , true , { } } ,
{ " blockchain " , " verifychain " , & verifychain , true , { " checklevel " , " nblocks " } } ,
{ " blockchain " , " verifychain " , & verifychain , true , { " checklevel " , " nblocks " } } ,
{ " blockchain " , " preciousblock " , & preciousblock , true , { " hash " } } ,
{ " blockchain " , " preciousblock " , & preciousblock , true , { " block hash" } } ,
/* Not shown in help */
/* Not shown in help */
{ " hidden " , " invalidateblock " , & invalidateblock , true , { " hash " } } ,
{ " hidden " , " invalidateblock " , & invalidateblock , true , { " block hash" } } ,
{ " hidden " , " reconsiderblock " , & reconsiderblock , true , { " hash " } } ,
{ " hidden " , " reconsiderblock " , & reconsiderblock , true , { " block hash" } } ,
{ " hidden " , " waitfornewblock " , & waitfornewblock , true , { " timeout " } } ,
{ " hidden " , " waitfornewblock " , & waitfornewblock , true , { " timeout " } } ,
{ " hidden " , " waitforblock " , & waitforblock , true , { " hash " , " timeout " } } ,
{ " hidden " , " waitforblock " , & waitforblock , true , { " block hash" , " timeout " } } ,
{ " hidden " , " waitforblockheight " , & waitforblockheight , true , { " height " , " timeout " } } ,
{ " hidden " , " waitforblockheight " , & waitforblockheight , true , { " height " , " timeout " } } ,
} ;
} ;