Skip to content

Commit afe5b3f

Browse files
committed
Added missing colons in when running help command
1 parent e8cfe1e commit afe5b3f

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/rpc/blockchain.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ UniValue getbestblockhash(const JSONRPCRequest& request)
169169
throw runtime_error(
170170
"getbestblockhash\n"
171171
"\nReturns the hash of the best (tip) block in the longest blockchain.\n"
172-
"\nResult\n"
172+
"\nResult:\n"
173173
"\"hex\" (string) the block hash hex encoded\n"
174-
"\nExamples\n"
174+
"\nExamples:\n"
175175
+ HelpExampleCli("getbestblockhash", "")
176176
+ HelpExampleRpc("getbestblockhash", "")
177177
);
@@ -204,7 +204,7 @@ UniValue waitfornewblock(const JSONRPCRequest& request)
204204
" \"hash\" : { (string) The blockhash\n"
205205
" \"height\" : { (int) Block height\n"
206206
"}\n"
207-
"\nExamples\n"
207+
"\nExamples:\n"
208208
+ HelpExampleCli("waitfornewblock", "1000")
209209
+ HelpExampleRpc("waitfornewblock", "1000")
210210
);
@@ -243,7 +243,7 @@ UniValue waitforblock(const JSONRPCRequest& request)
243243
" \"hash\" : { (string) The blockhash\n"
244244
" \"height\" : { (int) Block height\n"
245245
"}\n"
246-
"\nExamples\n"
246+
"\nExamples:\n"
247247
+ HelpExampleCli("waitforblock", "\"0000000000079f8ef3d2c688c244eb7a4570b24c9ed7b4a8c619eb02596f8862\", 1000")
248248
+ HelpExampleRpc("waitforblock", "\"0000000000079f8ef3d2c688c244eb7a4570b24c9ed7b4a8c619eb02596f8862\", 1000")
249249
);
@@ -286,7 +286,7 @@ UniValue waitforblockheight(const JSONRPCRequest& request)
286286
" \"hash\" : { (string) The blockhash\n"
287287
" \"height\" : { (int) Block height\n"
288288
"}\n"
289-
"\nExamples\n"
289+
"\nExamples:\n"
290290
+ HelpExampleCli("waitforblockheight", "\"100\", 1000")
291291
+ HelpExampleRpc("waitforblockheight", "\"100\", 1000")
292292
);
@@ -430,7 +430,7 @@ UniValue getrawmempool(const JSONRPCRequest& request)
430430
+ EntryDescriptionString()
431431
+ " }, ...\n"
432432
"}\n"
433-
"\nExamples\n"
433+
"\nExamples:\n"
434434
+ HelpExampleCli("getrawmempool", "true")
435435
+ HelpExampleRpc("getrawmempool", "true")
436436
);
@@ -462,7 +462,7 @@ UniValue getmempoolancestors(const JSONRPCRequest& request)
462462
+ EntryDescriptionString()
463463
+ " }, ...\n"
464464
"}\n"
465-
"\nExamples\n"
465+
"\nExamples:\n"
466466
+ HelpExampleCli("getmempoolancestors", "\"mytxid\"")
467467
+ HelpExampleRpc("getmempoolancestors", "\"mytxid\"")
468468
);
@@ -526,7 +526,7 @@ UniValue getmempooldescendants(const JSONRPCRequest& request)
526526
+ EntryDescriptionString()
527527
+ " }, ...\n"
528528
"}\n"
529-
"\nExamples\n"
529+
"\nExamples:\n"
530530
+ HelpExampleCli("getmempooldescendants", "\"mytxid\"")
531531
+ HelpExampleRpc("getmempooldescendants", "\"mytxid\"")
532532
);
@@ -582,7 +582,7 @@ UniValue getmempoolentry(const JSONRPCRequest& request)
582582
"{ (json object)\n"
583583
+ EntryDescriptionString()
584584
+ "}\n"
585-
"\nExamples\n"
585+
"\nExamples:\n"
586586
+ HelpExampleCli("getmempoolentry", "\"mytxid\"")
587587
+ HelpExampleRpc("getmempoolentry", "\"mytxid\"")
588588
);

src/rpc/mining.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ UniValue generate(const JSONRPCRequest& request)
155155
"\nArguments:\n"
156156
"1. numblocks (numeric, required) How many blocks are generated immediately.\n"
157157
"2. maxtries (numeric, optional) How many iterations to try (default = 1000000).\n"
158-
"\nResult\n"
158+
"\nResult:\n"
159159
"[ blockhashes ] (array) hashes of blocks generated\n"
160160
"\nExamples:\n"
161161
"\nGenerate 11 blocks\n"
@@ -192,7 +192,7 @@ UniValue generatetoaddress(const JSONRPCRequest& request)
192192
"1. numblocks (numeric, required) How many blocks are generated immediately.\n"
193193
"2. address (string, required) The address to send the newly generated bitcoin to.\n"
194194
"3. maxtries (numeric, optional) How many iterations to try (default = 1000000).\n"
195-
"\nResult\n"
195+
"\nResult:\n"
196196
"[ blockhashes ] (array) hashes of blocks generated\n"
197197
"\nExamples:\n"
198198
"\nGenerate 11 blocks to myaddress\n"
@@ -270,7 +270,7 @@ UniValue prioritisetransaction(const JSONRPCRequest& request)
270270
"3. fee delta (numeric, required) The fee value (in satoshis) to add (or subtract, if negative).\n"
271271
" The fee is not actually paid, only the algorithm for selecting transactions into a block\n"
272272
" considers the transaction as it would have paid a higher (or lower) fee.\n"
273-
"\nResult\n"
273+
"\nResult:\n"
274274
"true (boolean) Returns true\n"
275275
"\nExamples:\n"
276276
+ HelpExampleCli("prioritisetransaction", "\"txid\" 0.0 10000")
@@ -717,7 +717,7 @@ UniValue submitblock(const JSONRPCRequest& request)
717717
"The 'jsonparametersobject' parameter is currently ignored.\n"
718718
"See https://en.bitcoin.it/wiki/BIP_0022 for full specification.\n"
719719

720-
"\nArguments\n"
720+
"\nArguments:\n"
721721
"1. \"hexdata\" (string, required) the hex-encoded block data to submit\n"
722722
"2. \"jsonparametersobject\" (string, optional) object of optional parameters\n"
723723
" {\n"

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ UniValue createrawtransaction(const JSONRPCRequest& request)
377377
"\nResult:\n"
378378
"\"transaction\" (string) hex string of the transaction\n"
379379

380-
"\nExamples\n"
380+
"\nExamples:\n"
381381
+ HelpExampleCli("createrawtransaction", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\" \"{\\\"address\\\":0.01}\"")
382382
+ HelpExampleCli("createrawtransaction", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\" \"{\\\"data\\\":\\\"00010203\\\"}\"")
383383
+ HelpExampleRpc("createrawtransaction", "\"[{\\\"txid\\\":\\\"myid\\\",\\\"vout\\\":0}]\", \"{\\\"address\\\":0.01}\"")

0 commit comments

Comments
 (0)