MCPcopy Create free account
hub / github.com/ElementsProject/elements / CheckWarmup

Function CheckWarmup

src/rest.cpp:179–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179static bool CheckWarmup(HTTPRequest* req)
180{
181 std::string statusmessage;
182 if (RPCIsInWarmup(&statusmessage))
183 return RESTERR(req, HTTP_SERVICE_UNAVAILABLE, "Service temporarily unavailable: " + statusmessage);
184 return true;
185}
186
187static bool rest_headers(const std::any& context,
188 HTTPRequest* req,

Callers 10

rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_filter_headerFunction · 0.85
rest_block_filterFunction · 0.85
rest_chaininfoFunction · 0.85
rest_mempool_infoFunction · 0.85
rest_mempool_contentsFunction · 0.85
rest_txFunction · 0.85
rest_getutxosFunction · 0.85
rest_blockhash_by_heightFunction · 0.85

Calls 2

RPCIsInWarmupFunction · 0.85
RESTERRFunction · 0.85

Tested by

no test coverage detected