Merge #9240: Remove txConflicted
[bitcoinplatinum.git] / src / zmq / zmqnotificationinterface.h
blob037470ec17f9f398b9838471b4995b396869ab5e
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"
9 #include <string>
10 #include <map>
12 class CBlockIndex;
13 class CZMQAbstractNotifier;
15 class CZMQNotificationInterface : public CValidationInterface
17 public:
18 virtual ~CZMQNotificationInterface();
20 static CZMQNotificationInterface* CreateWithArguments(const std::map<std::string, std::string> &args);
22 protected:
23 bool Initialize();
24 void Shutdown();
26 // CValidationInterface
27 void SyncTransaction(const CTransaction& tx, const CBlockIndex *pindex, int posInBlock);
28 void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload);
30 private:
31 CZMQNotificationInterface();
33 void *pcontext;
34 std::list<CZMQAbstractNotifier*> notifiers;
37 #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H