aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2014-11-26 13:51:02 +0100
committerJonas Schnelli <jonas.schnelli@include7.ch>2014-11-26 13:51:02 +0100
commit78bdc8103ff4c1b2f1f636f9c5564285028f3e19 (patch)
tree116367901be37b441a25bd80922336cfaf28f5b2 /src/rpcserver.h
parent210eba9fdb9b4ed28ab0b9dcdbcaf45209a143b4 (diff)
downloadbitcoin-78bdc8103ff4c1b2f1f636f9c5564285028f3e19.tar.xz
[REST] give an appropriate response in warmup phase
Diffstat (limited to 'src/rpcserver.h')
-rw-r--r--src/rpcserver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h
index 7395fc23c6..b0e437057b 100644
--- a/src/rpcserver.h
+++ b/src/rpcserver.h
@@ -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.