diff options
author | Daniel Kraft <d@domob.eu> | 2018-06-29 16:10:01 +0200 |
---|---|---|
committer | Daniel Kraft <d@domob.eu> | 2018-07-05 08:02:22 +0200 |
commit | 161e8d40a4e4c0e701b6c8142b8dcacf2190545e (patch) | |
tree | 1a897ac73c6e7c6d60b0f46f9624481f1b854af3 /src/zmq/zmqrpc.h | |
parent | caac39b0ace38aa088d88c1a5a9a9dbb4d2e893f (diff) |
RPC: Add new getzmqnotifications method.
This adds a new RPC method "getzmqnotifications", which returns
information about all active ZMQ notification endpoints. This is useful
for software that layers on top of bitcoind, so it can verify that
ZeroMQ is enabled and also figure out where it should listen.
See https://github.com/bitcoin/bitcoin/issues/13526.
Diffstat (limited to 'src/zmq/zmqrpc.h')
-rw-r--r-- | src/zmq/zmqrpc.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/zmq/zmqrpc.h b/src/zmq/zmqrpc.h new file mode 100644 index 0000000000..5a810a16fb --- /dev/null +++ b/src/zmq/zmqrpc.h @@ -0,0 +1,12 @@ +// Copyright (c) 2018 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_ZMQ_ZMQRPC_H +#define BITCOIN_ZMQ_ZMQRPC_H + +class CRPCTable; + +void RegisterZMQRPCCommands(CRPCTable& t); + +#endif // BITCOIN_ZMQ_ZMRRPC_H |