|
|
|
@ -190,9 +190,6 @@ static bool rest_headers(HTTPRequest* req,
@@ -190,9 +190,6 @@ static bool rest_headers(HTTPRequest* req,
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: .bin, .hex)"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// not reached
|
|
|
|
|
return true; // continue to process further HTTP reqs on this cxn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static bool rest_block(HTTPRequest* req, |
|
|
|
@ -253,9 +250,6 @@ static bool rest_block(HTTPRequest* req,
@@ -253,9 +250,6 @@ static bool rest_block(HTTPRequest* req,
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: " + AvailableDataFormatsString() + ")"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// not reached
|
|
|
|
|
return true; // continue to process further HTTP reqs on this cxn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static bool rest_block_extended(HTTPRequest* req, const std::string& strURIPart) |
|
|
|
@ -292,9 +286,6 @@ static bool rest_chaininfo(HTTPRequest* req, const std::string& strURIPart)
@@ -292,9 +286,6 @@ static bool rest_chaininfo(HTTPRequest* req, const std::string& strURIPart)
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: json)"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// not reached
|
|
|
|
|
return true; // continue to process further HTTP reqs on this cxn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static bool rest_mempool_info(HTTPRequest* req, const std::string& strURIPart) |
|
|
|
@ -317,9 +308,6 @@ static bool rest_mempool_info(HTTPRequest* req, const std::string& strURIPart)
@@ -317,9 +308,6 @@ static bool rest_mempool_info(HTTPRequest* req, const std::string& strURIPart)
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: json)"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// not reached
|
|
|
|
|
return true; // continue to process further HTTP reqs on this cxn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static bool rest_mempool_contents(HTTPRequest* req, const std::string& strURIPart) |
|
|
|
@ -342,9 +330,6 @@ static bool rest_mempool_contents(HTTPRequest* req, const std::string& strURIPar
@@ -342,9 +330,6 @@ static bool rest_mempool_contents(HTTPRequest* req, const std::string& strURIPar
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: json)"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// not reached
|
|
|
|
|
return true; // continue to process further HTTP reqs on this cxn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static bool rest_tx(HTTPRequest* req, const std::string& strURIPart) |
|
|
|
@ -394,9 +379,6 @@ static bool rest_tx(HTTPRequest* req, const std::string& strURIPart)
@@ -394,9 +379,6 @@ static bool rest_tx(HTTPRequest* req, const std::string& strURIPart)
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: " + AvailableDataFormatsString() + ")"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// not reached
|
|
|
|
|
return true; // continue to process further HTTP reqs on this cxn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart) |
|
|
|
@ -581,9 +563,6 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart)
@@ -581,9 +563,6 @@ static bool rest_getutxos(HTTPRequest* req, const std::string& strURIPart)
|
|
|
|
|
return RESTERR(req, HTTP_NOT_FOUND, "output format not found (available: " + AvailableDataFormatsString() + ")"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// not reached
|
|
|
|
|
return true; // continue to process further HTTP reqs on this cxn
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static const struct { |
|
|
|
|