@@ -194,12 +194,12 @@ UniValue waitfornewblock(const JSONRPCRequest& request)
194
194
{
195
195
if (request.fHelp || request.params .size () > 1 )
196
196
throw runtime_error (
197
- " waitfornewblock\n "
197
+ " waitfornewblock (timeout) \n "
198
198
" \n Waits for a specific new block and returns useful info about it.\n "
199
199
" \n Returns the current block on timeout or exit.\n "
200
200
" \n Arguments:\n "
201
- " 1. timeout (milliseconds) ( int, optional, default=false) \n "
202
- " \n Result:: \n "
201
+ " 1. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout. \n "
202
+ " \n Result:\n "
203
203
" { (json object)\n "
204
204
" \" hash\" : { (string) The blockhash\n "
205
205
" \" height\" : { (int) Block height\n "
@@ -232,13 +232,13 @@ 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\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
239
" 1. blockhash to wait for (string)\n "
240
- " 2. timeout (milliseconds) ( int, optional, default=false) \n "
241
- " \n Result:: \n "
240
+ " 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout. \n "
241
+ " \n Result:\n "
242
242
" { (json object)\n "
243
243
" \" hash\" : { (string) The blockhash\n "
244
244
" \" height\" : { (int) Block height\n "
@@ -274,14 +274,14 @@ 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
- " waitforblock \n "
277
+ " waitforblockheight <blockheight> (timeout) \n "
278
278
" \n Waits for (at least) block height and returns the height and hash\n "
279
- " \n of the current tip.\n "
279
+ " of the current tip.\n "
280
280
" \n Returns the current block on timeout or exit.\n "
281
281
" \n Arguments:\n "
282
282
" 1. block height to wait for (int)\n "
283
- " 2. timeout (milliseconds) ( int, optional, default=false) \n "
284
- " \n Result:: \n "
283
+ " 2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout. \n "
284
+ " \n Result:\n "
285
285
" { (json object)\n "
286
286
" \" hash\" : { (string) The blockhash\n "
287
287
" \" height\" : { (int) Block height\n "
0 commit comments