[Wallet] split the keypool in an internal and external part
[bitcoinplatinum.git] / src / zmq / zmqnotificationinterface.h
blobbeabb78da6d3d47a420b4627679fcf0a89d1deee
1 // Copyright (c) 2015-2016 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* Create();
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