aboutsummaryrefslogtreecommitdiff
path: root/src/zmq/zmqnotificationinterface.h
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2018-06-29 16:10:01 +0200
committerDaniel Kraft <d@domob.eu>2018-07-05 08:02:22 +0200
commit161e8d40a4e4c0e701b6c8142b8dcacf2190545e (patch)
tree1a897ac73c6e7c6d60b0f46f9624481f1b854af3 /src/zmq/zmqnotificationinterface.h
parentcaac39b0ace38aa088d88c1a5a9a9dbb4d2e893f (diff)
downloadbitcoin-161e8d40a4e4c0e701b6c8142b8dcacf2190545e.tar.xz
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/zmqnotificationinterface.h')
-rw-r--r--src/zmq/zmqnotificationinterface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zmq/zmqnotificationinterface.h b/src/zmq/zmqnotificationinterface.h
index 3fcc96ce24..a0cc26a162 100644
--- a/src/zmq/zmqnotificationinterface.h
+++ b/src/zmq/zmqnotificationinterface.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2015-2017 The Bitcoin Core developers
+// Copyright (c) 2015-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.
@@ -18,6 +18,8 @@ class CZMQNotificationInterface final : public CValidationInterface
public:
virtual ~CZMQNotificationInterface();
+ std::list<const CZMQAbstractNotifier*> GetActiveNotifiers() const;
+
static CZMQNotificationInterface* Create();
protected: