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"
13 class CZMQAbstractNotifier
;
15 class CZMQNotificationInterface
: public CValidationInterface
18 virtual ~CZMQNotificationInterface();
20 static CZMQNotificationInterface
* CreateWithArguments(const std::map
<std::string
, std::string
> &args
);
26 // CValidationInterface
27 void SyncTransaction(const CTransaction
& tx
, const CBlockIndex
*pindex
, int posInBlock
);
28 void UpdatedBlockTip(const CBlockIndex
*pindexNew
, const CBlockIndex
*pindexFork
, bool fInitialDownload
);
31 CZMQNotificationInterface();
34 std::list
<CZMQAbstractNotifier
*> notifiers
;
37 #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H