[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

@@ -53,6 +53,9 @@ void SetRPCWarmupStatus(const std::string& newStatus);
/* Mark warmup as done. RPC calls will be processed from now on. */
void SetRPCWarmupFinished();
/* returns the current warmup state. */
bool RPCIsInWarmup(std::string *statusOut);
/**
* Type-check arguments; throws JSONRPCError if wrong type given. Does not check that
* the right number of arguments are passed, just that any passed are the correct type.