[REST] give an appropriate response in warmup phase

This commit is contained in:
Jonas Schnelli
2014-11-26 13:51:02 +01:00
parent 210eba9fdb
commit 78bdc8103f
4 changed files with 16 additions and 0 deletions

View File

@@ -756,6 +756,14 @@ void SetRPCWarmupFinished()
fRPCInWarmup = false;
}
bool RPCIsInWarmup(std::string *outStatus)
{
LOCK(cs_rpcWarmup);
if (outStatus)
*outStatus = rpcWarmupStatus;
return fRPCInWarmup;
}
void RPCRunHandler(const boost::system::error_code& err, boost::function<void(void)> func)
{
if (!err)