@@ -219,8 +219,9 @@ UniValue blockToJSON(BlockManager& blockman, const CBlock& block, const CBlockIn
219219
220220static RPCHelpMan getblockcount ()
221221{
222- return RPCHelpMan{" getblockcount" ,
223- " \n Returns the height of the most-work fully-validated chain.\n "
222+ return RPCHelpMan{
223+ " getblockcount" ,
224+ " Returns the height of the most-work fully-validated chain.\n "
224225 " The genesis block has height 0.\n " ,
225226 {},
226227 RPCResult{
@@ -240,8 +241,9 @@ static RPCHelpMan getblockcount()
240241
241242static RPCHelpMan getbestblockhash ()
242243{
243- return RPCHelpMan{" getbestblockhash" ,
244- " \n Returns the hash of the best (tip) block in the most-work fully-validated chain.\n " ,
244+ return RPCHelpMan{
245+ " getbestblockhash" ,
246+ " Returns the hash of the best (tip) block in the most-work fully-validated chain.\n " ,
245247 {},
246248 RPCResult{
247249 RPCResult::Type::STR_HEX, " " , " the block hash, hex-encoded" },
@@ -260,8 +262,9 @@ static RPCHelpMan getbestblockhash()
260262
261263static RPCHelpMan waitfornewblock ()
262264{
263- return RPCHelpMan{" waitfornewblock" ,
264- " \n Waits for any new block and returns useful info about it.\n "
265+ return RPCHelpMan{
266+ " waitfornewblock" ,
267+ " Waits for any new block and returns useful info about it.\n "
265268 " \n Returns the current block on timeout or exit.\n "
266269 " \n Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
267270 {
@@ -305,8 +308,9 @@ static RPCHelpMan waitfornewblock()
305308
306309static RPCHelpMan waitforblock ()
307310{
308- return RPCHelpMan{" waitforblock" ,
309- " \n Waits for a specific new block and returns useful info about it.\n "
311+ return RPCHelpMan{
312+ " waitforblock" ,
313+ " Waits for a specific new block and returns useful info about it.\n "
310314 " \n Returns the current block on timeout or exit.\n "
311315 " \n Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
312316 {
@@ -365,8 +369,9 @@ static RPCHelpMan waitforblock()
365369
366370static RPCHelpMan waitforblockheight ()
367371{
368- return RPCHelpMan{" waitforblockheight" ,
369- " \n Waits for (at least) block height and returns the height and hash\n "
372+ return RPCHelpMan{
373+ " waitforblockheight" ,
374+ " Waits for (at least) block height and returns the height and hash\n "
370375 " of the current tip.\n "
371376 " \n Returns the current block on timeout or exit.\n "
372377 " \n Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
@@ -427,8 +432,9 @@ static RPCHelpMan waitforblockheight()
427432
428433static RPCHelpMan syncwithvalidationinterfacequeue ()
429434{
430- return RPCHelpMan{" syncwithvalidationinterfacequeue" ,
431- " \n Waits for the validation interface queue to catch up on everything that was there when we entered this function.\n " ,
435+ return RPCHelpMan{
436+ " syncwithvalidationinterfacequeue" ,
437+ " Waits for the validation interface queue to catch up on everything that was there when we entered this function.\n " ,
432438 {},
433439 RPCResult{RPCResult::Type::NONE, " " , " " },
434440 RPCExamples{
@@ -446,8 +452,9 @@ static RPCHelpMan syncwithvalidationinterfacequeue()
446452
447453static RPCHelpMan getdifficulty ()
448454{
449- return RPCHelpMan{" getdifficulty" ,
450- " \n Returns the proof-of-work difficulty as a multiple of the minimum difficulty.\n " ,
455+ return RPCHelpMan{
456+ " getdifficulty" ,
457+ " Returns the proof-of-work difficulty as a multiple of the minimum difficulty.\n " ,
451458 {},
452459 RPCResult{
453460 RPCResult::Type::NUM, " " , " the proof-of-work difficulty as a multiple of the minimum difficulty." },
@@ -521,8 +528,9 @@ static RPCHelpMan getblockfrompeer()
521528
522529static RPCHelpMan getblockhash ()
523530{
524- return RPCHelpMan{" getblockhash" ,
525- " \n Returns hash of block in best-block-chain at height provided.\n " ,
531+ return RPCHelpMan{
532+ " getblockhash" ,
533+ " Returns hash of block in best-block-chain at height provided.\n " ,
526534 {
527535 {" height" , RPCArg::Type::NUM, RPCArg::Optional::NO, " The height index" },
528536 },
@@ -550,8 +558,9 @@ static RPCHelpMan getblockhash()
550558
551559static RPCHelpMan getblockheader ()
552560{
553- return RPCHelpMan{" getblockheader" ,
554- " \n If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.\n "
561+ return RPCHelpMan{
562+ " getblockheader" ,
563+ " If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'.\n "
555564 " If verbose is true, returns an Object with information about blockheader <hash>.\n " ,
556565 {
557566 {" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " The block hash" },
@@ -715,8 +724,9 @@ const RPCResult getblock_vin{
715724
716725static RPCHelpMan getblock ()
717726{
718- return RPCHelpMan{" getblock" ,
719- " \n If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n "
727+ return RPCHelpMan{
728+ " getblock" ,
729+ " If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n "
720730 " If verbosity is 1, returns an Object with information about block <hash>.\n "
721731 " If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\n "
722732 " If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).\n " ,
@@ -954,8 +964,9 @@ static std::optional<kernel::CCoinsStats> GetUTXOStats(CCoinsView* view, node::B
954964
955965static RPCHelpMan gettxoutsetinfo ()
956966{
957- return RPCHelpMan{" gettxoutsetinfo" ,
958- " \n Returns statistics about the unspent transaction output set.\n "
967+ return RPCHelpMan{
968+ " gettxoutsetinfo" ,
969+ " Returns statistics about the unspent transaction output set.\n "
959970 " Note this call may take some time if you are not using coinstatsindex.\n " ,
960971 {
961972 {" hash_type" , RPCArg::Type::STR, RPCArg::Default{" hash_serialized_3" }, " Which UTXO set hash should be calculated. Options: 'hash_serialized_3' (the legacy algorithm), 'muhash', 'none'." },
@@ -1109,8 +1120,9 @@ static RPCHelpMan gettxoutsetinfo()
11091120
11101121static RPCHelpMan gettxout ()
11111122{
1112- return RPCHelpMan{" gettxout" ,
1113- " \n Returns details about an unspent transaction output.\n " ,
1123+ return RPCHelpMan{
1124+ " gettxout" ,
1125+ " Returns details about an unspent transaction output.\n " ,
11141126 {
11151127 {" txid" , RPCArg::Type::STR, RPCArg::Optional::NO, " The transaction id" },
11161128 {" n" , RPCArg::Type::NUM, RPCArg::Optional::NO, " vout number" },
@@ -1188,8 +1200,9 @@ static RPCHelpMan gettxout()
11881200
11891201static RPCHelpMan verifychain ()
11901202{
1191- return RPCHelpMan{" verifychain" ,
1192- " \n Verifies blockchain database.\n " ,
1203+ return RPCHelpMan{
1204+ " verifychain" ,
1205+ " Verifies blockchain database.\n " ,
11931206 {
11941207 {" checklevel" , RPCArg::Type::NUM, RPCArg::DefaultHint{strprintf (" %d, range=0-4" , DEFAULT_CHECKLEVEL)},
11951208 strprintf (" How thorough the block verification is:\n %s" , MakeUnorderedList (CHECKLEVEL_DOC))},
@@ -1570,8 +1583,9 @@ static RPCHelpMan getchaintips()
15701583
15711584static RPCHelpMan preciousblock ()
15721585{
1573- return RPCHelpMan{" preciousblock" ,
1574- " \n Treats a block as if it were received before others with the same work.\n "
1586+ return RPCHelpMan{
1587+ " preciousblock" ,
1588+ " Treats a block as if it were received before others with the same work.\n "
15751589 " \n A later preciousblock call can override the effect of an earlier one.\n "
15761590 " \n The effects of preciousblock are not retained across restarts.\n " ,
15771591 {
@@ -1631,8 +1645,9 @@ void InvalidateBlock(ChainstateManager& chainman, const uint256 block_hash) {
16311645
16321646static RPCHelpMan invalidateblock ()
16331647{
1634- return RPCHelpMan{" invalidateblock" ,
1635- " \n Permanently marks a block as invalid, as if it violated a consensus rule.\n " ,
1648+ return RPCHelpMan{
1649+ " invalidateblock" ,
1650+ " Permanently marks a block as invalid, as if it violated a consensus rule.\n " ,
16361651 {
16371652 {" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " the hash of the block to mark as invalid" },
16381653 },
@@ -1675,8 +1690,9 @@ void ReconsiderBlock(ChainstateManager& chainman, uint256 block_hash) {
16751690
16761691static RPCHelpMan reconsiderblock ()
16771692{
1678- return RPCHelpMan{" reconsiderblock" ,
1679- " \n Removes invalidity status of a block, its ancestors and its descendants, reconsider them for activation.\n "
1693+ return RPCHelpMan{
1694+ " reconsiderblock" ,
1695+ " Removes invalidity status of a block, its ancestors and its descendants, reconsider them for activation.\n "
16801696 " This can be used to undo the effects of invalidateblock.\n " ,
16811697 {
16821698 {" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " the hash of the block to reconsider" },
@@ -1700,8 +1716,9 @@ static RPCHelpMan reconsiderblock()
17001716
17011717static RPCHelpMan getchaintxstats ()
17021718{
1703- return RPCHelpMan{" getchaintxstats" ,
1704- " \n Compute statistics about the total number and rate of transactions in the chain.\n " ,
1719+ return RPCHelpMan{
1720+ " getchaintxstats" ,
1721+ " Compute statistics about the total number and rate of transactions in the chain.\n " ,
17051722 {
17061723 {" nblocks" , RPCArg::Type::NUM, RPCArg::DefaultHint{" one month" }, " Size of the window in number of blocks" },
17071724 {" blockhash" , RPCArg::Type::STR_HEX, RPCArg::DefaultHint{" chain tip" }, " The hash of the block that ends the window." },
@@ -1846,8 +1863,9 @@ static constexpr size_t PER_UTXO_OVERHEAD = sizeof(COutPoint) + sizeof(uint32_t)
18461863
18471864static RPCHelpMan getblockstats ()
18481865{
1849- return RPCHelpMan{" getblockstats" ,
1850- " \n Compute per block statistics for a given window. All amounts are in satoshis.\n "
1866+ return RPCHelpMan{
1867+ " getblockstats" ,
1868+ " Compute per block statistics for a given window. All amounts are in satoshis.\n "
18511869 " It won't work for some heights with pruning.\n " ,
18521870 {
18531871 {" hash_or_height" , RPCArg::Type::NUM, RPCArg::Optional::NO, " The block hash or height of the target block" ,
@@ -2204,8 +2222,9 @@ static RPCHelpMan scantxoutset()
22042222 // raw() descriptor corresponding to mainnet address 12cbQLTFMXRnSzktFkuoG3eHoMeFtpTu3S
22052223 const std::string EXAMPLE_DESCRIPTOR_RAW = " raw(76a91411b366edfc0a8b66feebae5c2e25a7b6a5d1cf3188ac)#fm24fxxy" ;
22062224
2207- return RPCHelpMan{" scantxoutset" ,
2208- " \n Scans the unspent transaction output set for entries that match certain output descriptors.\n "
2225+ return RPCHelpMan{
2226+ " scantxoutset" ,
2227+ " Scans the unspent transaction output set for entries that match certain output descriptors.\n "
22092228 " Examples of output descriptors are:\n "
22102229 " addr(<address>) Outputs whose output script corresponds to the specified address (does not include P2PK)\n "
22112230 " raw(<hex script>) Outputs whose output script equals the specified hex-encoded bytes\n "
@@ -2415,8 +2434,9 @@ static bool CheckBlockFilterMatches(BlockManager& blockman, const CBlockIndex& b
24152434
24162435static RPCHelpMan scanblocks ()
24172436{
2418- return RPCHelpMan{" scanblocks" ,
2419- " \n Return relevant blockhashes for given descriptors (requires blockfilterindex).\n "
2437+ return RPCHelpMan{
2438+ " scanblocks" ,
2439+ " Return relevant blockhashes for given descriptors (requires blockfilterindex).\n "
24202440 " This call may take several minutes. Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
24212441 {
24222442 scan_action_arg_desc,
@@ -2603,8 +2623,9 @@ static RPCHelpMan scanblocks()
26032623
26042624static RPCHelpMan getdescriptoractivity ()
26052625{
2606- return RPCHelpMan{" getdescriptoractivity" ,
2607- " \n Get spend and receive activity associated with a set of descriptors for a set of blocks. "
2626+ return RPCHelpMan{
2627+ " getdescriptoractivity" ,
2628+ " Get spend and receive activity associated with a set of descriptors for a set of blocks. "
26082629 " This command pairs well with the `relevant_blocks` output of `scanblocks()`.\n "
26092630 " This call may take several minutes. If you encounter timeouts, try specifying no RPC timeout (bitcoin-cli -rpcclienttimeout=0)" ,
26102631 {
@@ -2832,8 +2853,9 @@ static RPCHelpMan getdescriptoractivity()
28322853
28332854static RPCHelpMan getblockfilter ()
28342855{
2835- return RPCHelpMan{" getblockfilter" ,
2836- " \n Retrieve a BIP 157 content filter for a particular block.\n " ,
2856+ return RPCHelpMan{
2857+ " getblockfilter" ,
2858+ " Retrieve a BIP 157 content filter for a particular block.\n " ,
28372859 {
28382860 {" blockhash" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " The hash of the block" },
28392861 {" filtertype" , RPCArg::Type::STR, RPCArg::Default{BlockFilterTypeName (BlockFilterType::BASIC)}, " The type name of the filter" },
@@ -3322,7 +3344,7 @@ static RPCHelpMan getchainstates()
33223344{
33233345return RPCHelpMan{
33243346 " getchainstates" ,
3325- " \n Return information about chainstates.\n " ,
3347+ " Return information about chainstates.\n " ,
33263348 {},
33273349 RPCResult{
33283350 RPCResult::Type::OBJ, " " , " " , {
0 commit comments