@@ -341,11 +341,10 @@ static bool rest_block_notxdetails(const std::any& context, HTTPRequest* req, co
341
341
return rest_block (context, req, strURIPart, TxVerbosity::SHOW_TXID);
342
342
}
343
343
344
-
345
344
static bool rest_filter_header (const std::any& context, HTTPRequest* req, const std::string& strURIPart)
346
345
{
347
- if (!CheckWarmup (req))
348
- return false ;
346
+ if (!CheckWarmup (req)) return false ;
347
+
349
348
std::string param;
350
349
const RetFormat rf = ParseDataFormat (param, strURIPart);
351
350
@@ -375,7 +374,7 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
375
374
return RESTERR (req, HTTP_BAD_REQUEST, strprintf (" Header count out of acceptable range (1-%u): %s" , MAX_REST_HEADERS_RESULTS, uri_parts[1 ]));
376
375
}
377
376
378
- std::vector<const CBlockIndex *> headers;
377
+ std::vector<const CBlockIndex*> headers;
379
378
headers.reserve (*parsed_count);
380
379
{
381
380
ChainstateManager* maybe_chainman = GetChainman (context, req);
@@ -396,7 +395,7 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
396
395
397
396
std::vector<uint256> filter_headers;
398
397
filter_headers.reserve (*parsed_count);
399
- for (const CBlockIndex * pindex : headers) {
398
+ for (const CBlockIndex* pindex : headers) {
400
399
uint256 filter_header;
401
400
if (!index->LookupFilterHeader (pindex, filter_header)) {
402
401
std::string errmsg = " Filter not found." ;
@@ -454,12 +453,12 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
454
453
455
454
static bool rest_block_filter (const std::any& context, HTTPRequest* req, const std::string& strURIPart)
456
455
{
457
- if (!CheckWarmup (req))
458
- return false ;
456
+ if (!CheckWarmup (req)) return false ;
457
+
459
458
std::string param;
460
459
const RetFormat rf = ParseDataFormat (param, strURIPart);
461
460
462
- // request is sent over URI scheme /rest/blockfilter/filtertype/blockhash
461
+ // request is sent over URI scheme /rest/blockfilter/filtertype/blockhash
463
462
std::vector<std::string> uri_parts;
464
463
boost::split (uri_parts, param, boost::is_any_of (" /" ));
465
464
if (uri_parts.size () != 2 ) {
0 commit comments