mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
[REST] give an appropriate response in warmup phase
This commit is contained in:
parent
210eba9fdb
commit
78bdc8103f
4 changed files with 16 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue