diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2014-11-26 13:51:02 +0100 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2014-11-26 13:51:02 +0100 |
commit | 78bdc8103ff4c1b2f1f636f9c5564285028f3e19 (patch) | |
tree | 116367901be37b441a25bd80922336cfaf28f5b2 /src/rpcserver.cpp | |
parent | 210eba9fdb9b4ed28ab0b9dcdbcaf45209a143b4 (diff) |
[REST] give an appropriate response in warmup phase
Diffstat (limited to 'src/rpcserver.cpp')
-rw-r--r-- | src/rpcserver.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index 7022c50375..c10b05cb04 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -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) |