@@ -341,11 +341,10 @@ static bool rest_block_notxdetails(const std::any& context, HTTPRequest* req, co
341341 return rest_block (context, req, strURIPart, TxVerbosity::SHOW_TXID);
342342}
343343
344-
345344static bool rest_filter_header (const std::any& context, HTTPRequest* req, const std::string& strURIPart)
346345{
347- if (!CheckWarmup (req))
348- return false ;
346+ if (!CheckWarmup (req)) return false ;
347+
349348 std::string param;
350349 const RetFormat rf = ParseDataFormat (param, strURIPart);
351350
@@ -375,7 +374,7 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
375374 return RESTERR (req, HTTP_BAD_REQUEST, strprintf (" Header count out of acceptable range (1-%u): %s" , MAX_REST_HEADERS_RESULTS, uri_parts[1 ]));
376375 }
377376
378- std::vector<const CBlockIndex *> headers;
377+ std::vector<const CBlockIndex*> headers;
379378 headers.reserve (*parsed_count);
380379 {
381380 ChainstateManager* maybe_chainman = GetChainman (context, req);
@@ -396,7 +395,7 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
396395
397396 std::vector<uint256> filter_headers;
398397 filter_headers.reserve (*parsed_count);
399- for (const CBlockIndex * pindex : headers) {
398+ for (const CBlockIndex* pindex : headers) {
400399 uint256 filter_header;
401400 if (!index->LookupFilterHeader (pindex, filter_header)) {
402401 std::string errmsg = " Filter not found." ;
@@ -454,12 +453,12 @@ static bool rest_filter_header(const std::any& context, HTTPRequest* req, const
454453
455454static bool rest_block_filter (const std::any& context, HTTPRequest* req, const std::string& strURIPart)
456455{
457- if (!CheckWarmup (req))
458- return false ;
456+ if (!CheckWarmup (req)) return false ;
457+
459458 std::string param;
460459 const RetFormat rf = ParseDataFormat (param, strURIPart);
461460
462- // request is sent over URI scheme /rest/blockfilter/filtertype/blockhash
461+ // request is sent over URI scheme /rest/blockfilter/filtertype/blockhash
463462 std::vector<std::string> uri_parts;
464463 boost::split (uri_parts, param, boost::is_any_of (" /" ));
465464 if (uri_parts.size () != 2 ) {
0 commit comments