Dash Core  0.12.2.1
P2P Digital Currency
zmqnotificationinterface.h
Go to the documentation of this file.
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.
4 
5 #ifndef BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
6 #define BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
7 
8 #include "validationinterface.h"
9 #include <string>
10 #include <map>
11 
12 class CBlockIndex;
14 
16 {
17 public:
19 
20  static CZMQNotificationInterface* CreateWithArguments(const std::map<std::string, std::string> &args);
21 
22 protected:
23  bool Initialize();
24  void Shutdown();
25 
26  // CValidationInterface
27  void SyncTransaction(const CTransaction &tx, const CBlock *pblock);
28  void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload);
29  void NotifyTransactionLock(const CTransaction &tx);
30 
31 private:
33 
34  void *pcontext;
35  std::list<CZMQAbstractNotifier*> notifiers;
36 };
37 
38 #endif // BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
void NotifyTransactionLock(const CTransaction &tx)
void SyncTransaction(const CTransaction &tx, const CBlock *pblock)
static CZMQNotificationInterface * CreateWithArguments(const std::map< std::string, std::string > &args)
void UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload)
Definition: block.h:73
std::list< CZMQAbstractNotifier * > notifiers