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_ZMQNOTIFICATIONINTERFACE_H
6 #define BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
8 #include "validationinterface.h"
12 class CZMQAbstractNotifier
;
14 class CZMQNotificationInterface
: public CValidationInterface
17 virtual ~CZMQNotificationInterface();
19 static CZMQNotificationInterface
* CreateWithArguments(const std::map
<std::string
, std::string
> &args
);
24 protected: // CValidationInterface
25 void SyncTransaction(const CTransaction
&tx
, const CBlock
*pblock
);
26 void UpdatedBlockTip(const uint256
&newHashTip
);
29 CZMQNotificationInterface();
32 std::list
<CZMQAbstractNotifier
*> notifiers
;
35 #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H