@@ -187,12 +187,12 @@ static bool CheckWarmup(HTTPRequest* req)
187
187
188
188
static bool rest_headers (const std::any& context,
189
189
HTTPRequest* req,
190
- const std::string& strURIPart )
190
+ const std::string& uri_part )
191
191
{
192
192
if (!CheckWarmup (req))
193
193
return false ;
194
194
std::string param;
195
- const RESTResponseFormat rf = ParseDataFormat (param, strURIPart );
195
+ const RESTResponseFormat rf = ParseDataFormat (param, uri_part );
196
196
std::vector<std::string> path = SplitString (param, ' /' );
197
197
198
198
std::string raw_count;
@@ -319,13 +319,13 @@ static void BlockUndoToJSON(const CBlockUndo& block_undo, UniValue& result)
319
319
}
320
320
}
321
321
322
- static bool rest_spent_txouts (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
322
+ static bool rest_spent_txouts (const std::any& context, HTTPRequest* req, const std::string& uri_part )
323
323
{
324
324
if (!CheckWarmup (req)) {
325
325
return false ;
326
326
}
327
327
std::string param;
328
- const RESTResponseFormat rf = ParseDataFormat (param, strURIPart );
328
+ const RESTResponseFormat rf = ParseDataFormat (param, uri_part );
329
329
std::vector<std::string> path = SplitString (param, ' /' );
330
330
331
331
std::string hashStr;
@@ -391,13 +391,13 @@ static bool rest_spent_txouts(const std::any& context, HTTPRequest* req, const s
391
391
392
392
static bool rest_block (const std::any& context,
393
393
HTTPRequest* req,
394
- const std::string& strURIPart ,
394
+ const std::string& uri_part ,
395
395
TxVerbosity tx_verbosity)
396
396
{
397
397
if (!CheckWarmup (req))
398
398
return false ;
399
399
std::string hashStr;
400
- const RESTResponseFormat rf = ParseDataFormat (hashStr, strURIPart );
400
+ const RESTResponseFormat rf = ParseDataFormat (hashStr, uri_part );
401
401
402
402
auto hash{uint256::FromHex (hashStr)};
403
403
if (!hash) {
@@ -462,22 +462,22 @@ static bool rest_block(const std::any& context,
462
462
}
463
463
}
464
464
465
- static bool rest_block_extended (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
465
+ static bool rest_block_extended (const std::any& context, HTTPRequest* req, const std::string& uri_part )
466
466
{
467
- return rest_block (context, req, strURIPart , TxVerbosity::SHOW_DETAILS_AND_PREVOUT);
467
+ return rest_block (context, req, uri_part , TxVerbosity::SHOW_DETAILS_AND_PREVOUT);
468
468
}
469
469
470
- static bool rest_block_notxdetails (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
470
+ static bool rest_block_notxdetails (const std::any& context, HTTPRequest* req, const std::string& uri_part )
471
471
{
472
- return rest_block (context, req, strURIPart , TxVerbosity::SHOW_TXID);
472
+ return rest_block (context, req, uri_part , TxVerbosity::SHOW_TXID);
473
473
}
474
474
475
- static bool rest_filter_header (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
475
+ static bool rest_filter_header (const std::any& context, HTTPRequest* req, const std::string& uri_part )
476
476
{
477
477
if (!CheckWarmup (req)) return false ;
478
478
479
479
std::string param;
480
- const RESTResponseFormat rf = ParseDataFormat (param, strURIPart );
480
+ const RESTResponseFormat rf = ParseDataFormat (param, uri_part );
481
481
482
482
std::vector<std::string> uri_parts = SplitString (param, ' /' );
483
483
std::string raw_count;
@@ -594,12 +594,12 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
594
594
}
595
595
}
596
596
597
- static bool rest_block_filter (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
597
+ static bool rest_block_filter (const std::any& context, HTTPRequest* req, const std::string& uri_part )
598
598
{
599
599
if (!CheckWarmup (req)) return false ;
600
600
601
601
std::string param;
602
- const RESTResponseFormat rf = ParseDataFormat (param, strURIPart );
602
+ const RESTResponseFormat rf = ParseDataFormat (param, uri_part );
603
603
604
604
// request is sent over URI scheme /rest/blockfilter/filtertype/blockhash
605
605
std::vector<std::string> uri_parts = SplitString (param, ' /' );
@@ -688,12 +688,12 @@ static bool rest_block_filter(const std::any& context, HTTPRequest* req, const s
688
688
// A bit of a hack - dependency on a function defined in rpc/blockchain.cpp
689
689
RPCHelpMan getblockchaininfo ();
690
690
691
- static bool rest_chaininfo (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
691
+ static bool rest_chaininfo (const std::any& context, HTTPRequest* req, const std::string& uri_part )
692
692
{
693
693
if (!CheckWarmup (req))
694
694
return false ;
695
695
std::string param;
696
- const RESTResponseFormat rf = ParseDataFormat (param, strURIPart );
696
+ const RESTResponseFormat rf = ParseDataFormat (param, uri_part );
697
697
698
698
switch (rf) {
699
699
case RESTResponseFormat::JSON: {
@@ -810,12 +810,12 @@ static bool rest_mempool(const std::any& context, HTTPRequest* req, const std::s
810
810
}
811
811
}
812
812
813
- static bool rest_tx (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
813
+ static bool rest_tx (const std::any& context, HTTPRequest* req, const std::string& uri_part )
814
814
{
815
815
if (!CheckWarmup (req))
816
816
return false ;
817
817
std::string hashStr;
818
- const RESTResponseFormat rf = ParseDataFormat (hashStr, strURIPart );
818
+ const RESTResponseFormat rf = ParseDataFormat (hashStr, uri_part );
819
819
820
820
auto hash{uint256::FromHex (hashStr)};
821
821
if (!hash) {
@@ -869,12 +869,12 @@ static bool rest_tx(const std::any& context, HTTPRequest* req, const std::string
869
869
}
870
870
}
871
871
872
- static bool rest_getutxos (const std::any& context, HTTPRequest* req, const std::string& strURIPart )
872
+ static bool rest_getutxos (const std::any& context, HTTPRequest* req, const std::string& uri_part )
873
873
{
874
874
if (!CheckWarmup (req))
875
875
return false ;
876
876
std::string param;
877
- const RESTResponseFormat rf = ParseDataFormat (param, strURIPart );
877
+ const RESTResponseFormat rf = ParseDataFormat (param, uri_part );
878
878
879
879
std::vector<std::string> uriParts;
880
880
if (param.length () > 1 )
0 commit comments