diff options
| author | MarcoFalke <[email protected]> | 2020-05-22 15:38:48 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-22 15:52:37 -0400 |
| commit | fa7fc5a8e0fcf9ca81e84b3631f18ae40502be60 (patch) | |
| tree | 422665e4954f8f50a026e4a165ccfc35a72a8d9c /src/rpc/server.h | |
| parent | Merge #19014: test: Replace TEST_PREVIOUS_RELEASES env var with test_framewor... (diff) | |
| download | discoin-fa7fc5a8e0fcf9ca81e84b3631f18ae40502be60.tar.xz discoin-fa7fc5a8e0fcf9ca81e84b3631f18ae40502be60.zip | |
rpc: factor out RpcInterruptionPoint from dumptxoutset
Diffstat (limited to 'src/rpc/server.h')
| -rw-r--r-- | src/rpc/server.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index c91bf1f61..d7a04ff6e 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -9,10 +9,10 @@ #include <amount.h> #include <rpc/request.h> +#include <functional> #include <map> #include <stdint.h> #include <string> -#include <functional> #include <univalue.h> @@ -29,6 +29,9 @@ namespace RPCServer /** Query whether RPC is running */ bool IsRPCRunning(); +/** Throw JSONRPCError if RPC is not running */ +void RpcInterruptionPoint(); + /** * Set the RPC warmup status. When this is done, all RPC calls will error out * immediately with RPC_IN_WARMUP. |