PRCYCoin  2.0.0.7rc1
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 *pindex);
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
CValidationInterface
Definition: validationinterface.h:32
CZMQNotificationInterface::CZMQNotificationInterface
CZMQNotificationInterface()
Definition: zmqnotificationinterface.cpp:18
CZMQNotificationInterface::NotifyTransactionLock
void NotifyTransactionLock(const CTransaction &tx)
Definition: zmqnotificationinterface.cpp:163
CZMQNotificationInterface::pcontext
void * pcontext
Definition: zmqnotificationinterface.h:34
validationinterface.h
CTransaction
The basic transaction that is broadcasted on the network and contained in blocks.
Definition: transaction.h:269
CZMQAbstractNotifier
Definition: zmqabstractnotifier.h:15
CZMQNotificationInterface::CreateWithArguments
static CZMQNotificationInterface * CreateWithArguments(const std::map< std::string, std::string > &args)
Definition: zmqnotificationinterface.cpp:32
CZMQNotificationInterface::Shutdown
void Shutdown()
Definition: zmqnotificationinterface.cpp:112
CZMQNotificationInterface::UpdatedBlockTip
void UpdatedBlockTip(const CBlockIndex *pindex)
Definition: zmqnotificationinterface.cpp:129
CBlock
Definition: block.h:142
CZMQNotificationInterface::SyncTransaction
void SyncTransaction(const CTransaction &tx, const CBlock *pblock)
Definition: zmqnotificationinterface.cpp:146
CBlockIndex
The block chain is a tree shaped structure starting with the genesis block at the root,...
Definition: chain.h:162
CZMQNotificationInterface::notifiers
std::list< CZMQAbstractNotifier * > notifiers
Definition: zmqnotificationinterface.h:35
CZMQNotificationInterface
Definition: zmqnotificationinterface.h:15
CZMQNotificationInterface::Initialize
bool Initialize()
Definition: zmqnotificationinterface.cpp:75
CZMQNotificationInterface::~CZMQNotificationInterface
virtual ~CZMQNotificationInterface()
Definition: zmqnotificationinterface.cpp:22