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
13 bool Initialize(void *pcontext
);
17 class CZMQPublishHashBlockNotifier
: public CZMQAbstractPublishNotifier
20 bool NotifyBlock(const uint256
&hash
);
23 class CZMQPublishHashTransactionNotifier
: public CZMQAbstractPublishNotifier
26 bool NotifyTransaction(const CTransaction
&transaction
);
29 class CZMQPublishRawBlockNotifier
: public CZMQAbstractPublishNotifier
32 bool NotifyBlock(const uint256
&hash
);
35 class CZMQPublishRawTransactionNotifier
: public CZMQAbstractPublishNotifier
38 bool NotifyTransaction(const CTransaction
&transaction
);
41 #endif // BITCOIN_ZMQ_ZMQPUBLISHNOTIFIER_H