Add ZeroMQ support. Notify blocks and transactions via ZeroMQ
[bitcoinplatinum.git] / src / zmq / zmqpublishnotifier.h
bloba0eb26f5e268ad4bbd007e665a48d76e94d419b5
1 // Copyright (c) 2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_ZMQ_ZMQPUBLISHNOTIFIER_H
6 #define BITCOIN_ZMQ_ZMQPUBLISHNOTIFIER_H
8 #include "zmqabstractnotifier.h"
10 class CZMQAbstractPublishNotifier : public CZMQAbstractNotifier
12 public:
13 bool Initialize(void *pcontext);
14 void Shutdown();
17 class CZMQPublishHashBlockNotifier : public CZMQAbstractPublishNotifier
19 public:
20 bool NotifyBlock(const uint256 &hash);
23 class CZMQPublishHashTransactionNotifier : public CZMQAbstractPublishNotifier
25 public:
26 bool NotifyTransaction(const CTransaction &transaction);
29 class CZMQPublishRawBlockNotifier : public CZMQAbstractPublishNotifier
31 public:
32 bool NotifyBlock(const uint256 &hash);
35 class CZMQPublishRawTransactionNotifier : public CZMQAbstractPublishNotifier
37 public:
38 bool NotifyTransaction(const CTransaction &transaction);
41 #endif // BITCOIN_ZMQ_ZMQPUBLISHNOTIFIER_H