Skip to content

Commit c98f6b3

Browse files
author
MarcoFalke
committed
Merge #9144: [Trivial] Correct waitforblockheight example help text
e3c4f7e Correct help output for waitfor RPC commands (fanquake)
2 parents db5e22e + e3c4f7e commit c98f6b3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/rpc/blockchain.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ UniValue waitfornewblock(const JSONRPCRequest& request)
194194
{
195195
if (request.fHelp || request.params.size() > 1)
196196
throw runtime_error(
197-
"waitfornewblock\n"
197+
"waitfornewblock (timeout)\n"
198198
"\nWaits for a specific new block and returns useful info about it.\n"
199199
"\nReturns the current block on timeout or exit.\n"
200200
"\nArguments:\n"
201-
"1. timeout (milliseconds) (int, optional, default=false)\n"
202-
"\nResult::\n"
201+
"1. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout.\n"
202+
"\nResult:\n"
203203
"{ (json object)\n"
204204
" \"hash\" : { (string) The blockhash\n"
205205
" \"height\" : { (int) Block height\n"
@@ -232,13 +232,13 @@ UniValue waitforblock(const JSONRPCRequest& request)
232232
{
233233
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
234234
throw runtime_error(
235-
"waitforblock\n"
235+
"waitforblock <blockhash> (timeout)\n"
236236
"\nWaits for a specific new block and returns useful info about it.\n"
237237
"\nReturns the current block on timeout or exit.\n"
238238
"\nArguments:\n"
239239
"1. blockhash to wait for (string)\n"
240-
"2. timeout (milliseconds) (int, optional, default=false)\n"
241-
"\nResult::\n"
240+
"2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout.\n"
241+
"\nResult:\n"
242242
"{ (json object)\n"
243243
" \"hash\" : { (string) The blockhash\n"
244244
" \"height\" : { (int) Block height\n"
@@ -274,14 +274,14 @@ UniValue waitforblockheight(const JSONRPCRequest& request)
274274
{
275275
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
276276
throw runtime_error(
277-
"waitforblock\n"
277+
"waitforblockheight <blockheight> (timeout)\n"
278278
"\nWaits for (at least) block height and returns the height and hash\n"
279-
"\nof the current tip.\n"
279+
"of the current tip.\n"
280280
"\nReturns the current block on timeout or exit.\n"
281281
"\nArguments:\n"
282282
"1. block height to wait for (int)\n"
283-
"2. timeout (milliseconds) (int, optional, default=false)\n"
284-
"\nResult::\n"
283+
"2. timeout (int, optional, default=0) Time in milliseconds to wait for a response. 0 indicates no timeout.\n"
284+
"\nResult:\n"
285285
"{ (json object)\n"
286286
" \"hash\" : { (string) The blockhash\n"
287287
" \"height\" : { (int) Block height\n"

0 commit comments

Comments
 (0)