Skip to content

Commit ef35604

Browse files
committed
rpc: fix broken RPCExamples for waitforblock(height)
Fixes the following RPCExamples: -> ExampleCli waitforblock (removed comma between arguments) -> ExampleCli waitforblockheight (removed comma between arguments) -> ExampleRpc waitforblockheight (removed quotation marks around integer argument)
1 parent 5504703 commit ef35604

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rpc/blockchain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static UniValue waitforblock(const JSONRPCRequest& request)
270270
{RPCResult::Type::NUM, "height", "Block height"},
271271
}},
272272
RPCExamples{
273-
HelpExampleCli("waitforblock", "\"0000000000079f8ef3d2c688c244eb7a4570b24c9ed7b4a8c619eb02596f8862\", 1000")
273+
HelpExampleCli("waitforblock", "\"0000000000079f8ef3d2c688c244eb7a4570b24c9ed7b4a8c619eb02596f8862\" 1000")
274274
+ HelpExampleRpc("waitforblock", "\"0000000000079f8ef3d2c688c244eb7a4570b24c9ed7b4a8c619eb02596f8862\", 1000")
275275
},
276276
}.Check(request);
@@ -314,8 +314,8 @@ static UniValue waitforblockheight(const JSONRPCRequest& request)
314314
{RPCResult::Type::NUM, "height", "Block height"},
315315
}},
316316
RPCExamples{
317-
HelpExampleCli("waitforblockheight", "\"100\", 1000")
318-
+ HelpExampleRpc("waitforblockheight", "\"100\", 1000")
317+
HelpExampleCli("waitforblockheight", "100 1000")
318+
+ HelpExampleRpc("waitforblockheight", "100, 1000")
319319
},
320320
}.Check(request);
321321
int timeout = 0;

0 commit comments

Comments
 (0)