MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / CheckWarmup

Function CheckWarmup

src/rest.cpp:117–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117static bool CheckWarmup(HTTPRequest* req)
118{
119 std::string statusmessage;
120 if (RPCIsInWarmup(&statusmessage))
121 return RESTERR(req, HTTP_SERVICE_UNAVAILABLE, "Service temporarily unavailable: " + statusmessage);
122 return true;
123}
124
125static bool rest_headers(HTTPRequest* req,
126 const std::string& strURIPart)

Callers 7

rest_headersFunction · 0.85
rest_blockFunction · 0.85
rest_chaininfoFunction · 0.85
rest_mempool_infoFunction · 0.85
rest_mempool_contentsFunction · 0.85
rest_txFunction · 0.85
rest_getutxosFunction · 0.85

Calls 2

RPCIsInWarmupFunction · 0.85
RESTERRFunction · 0.85

Tested by

no test coverage detected