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

Function CheckWarmup

src/rest.cpp:172–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static bool CheckWarmup(HTTPRequest* req)
173{
174 std::string statusmessage;
175 if (RPCIsInWarmup(&statusmessage))
176 return RESTERR(req, HTTP_SERVICE_UNAVAILABLE, "Service temporarily unavailable: " + statusmessage);
177 return true;
178}
179
180static bool rest_headers(const std::any& context,
181 HTTPRequest* req,

Callers 11

rest_headersFunction · 0.85
rest_spent_txoutsFunction · 0.85
rest_blockFunction · 0.85
rest_filter_headerFunction · 0.85
rest_block_filterFunction · 0.85
rest_chaininfoFunction · 0.85
rest_deploymentinfoFunction · 0.85
rest_mempoolFunction · 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