Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CZMQPublishRawBlockNotifier Class Reference

#include <zmqpublishnotifier.h>

Inheritance diagram for CZMQPublishRawBlockNotifier:
[legend]
Collaboration diagram for CZMQPublishRawBlockNotifier:
[legend]

Public Member Functions

 CZMQPublishRawBlockNotifier (std::function< bool(std::vector< uint8_t > &, const CBlockIndex &)> get_block_by_index)
 
bool NotifyBlock (const CBlockIndex *pindex) override
 
- Public Member Functions inherited from CZMQAbstractPublishNotifier
bool SendZmqMessage (const char *command, const void *data, size_t size)
 
bool Initialize (void *pcontext) override
 
void Shutdown () override
 
- Public Member Functions inherited from CZMQAbstractNotifier
 CZMQAbstractNotifier ()
 
virtual ~CZMQAbstractNotifier ()
 
std::string GetType () const
 
void SetType (const std::string &t)
 
std::string GetAddress () const
 
void SetAddress (const std::string &a)
 
int GetOutboundMessageHighWaterMark () const
 
void SetOutboundMessageHighWaterMark (const int sndhwm)
 
virtual bool NotifyBlockConnect (const CBlockIndex *pindex)
 
virtual bool NotifyBlockDisconnect (const CBlockIndex *pindex)
 
virtual bool NotifyTransactionAcceptance (const CTransaction &transaction, uint64_t mempool_sequence)
 
virtual bool NotifyTransactionRemoval (const CTransaction &transaction, uint64_t mempool_sequence)
 
virtual bool NotifyTransaction (const CTransaction &transaction)
 

Private Attributes

const std::function< bool(std::vector< uint8_t > &, const CBlockIndex &)> m_get_block_by_index
 

Additional Inherited Members

- Static Public Member Functions inherited from CZMQAbstractNotifier
template<typename T >
static std::unique_ptr< CZMQAbstractNotifierCreate ()
 
- Static Public Attributes inherited from CZMQAbstractNotifier
static const int DEFAULT_ZMQ_SNDHWM {1000}
 
- Protected Attributes inherited from CZMQAbstractNotifier
void * psocket {nullptr}
 
std::string type
 
std::string address
 
int outbound_message_high_water_mark
 

Detailed Description

Definition at line 49 of file zmqpublishnotifier.h.

Constructor & Destructor Documentation

◆ CZMQPublishRawBlockNotifier()

CZMQPublishRawBlockNotifier::CZMQPublishRawBlockNotifier ( std::function< bool(std::vector< uint8_t > &, const CBlockIndex &)>  get_block_by_index)
inline

Definition at line 55 of file zmqpublishnotifier.h.

Member Function Documentation

◆ NotifyBlock()

bool CZMQPublishRawBlockNotifier::NotifyBlock ( const CBlockIndex pindex)
overridevirtual

Reimplemented from CZMQAbstractNotifier.

Definition at line 242 of file zmqpublishnotifier.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_get_block_by_index

const std::function<bool(std::vector<uint8_t>&, const CBlockIndex&)> CZMQPublishRawBlockNotifier::m_get_block_by_index
private

Definition at line 52 of file zmqpublishnotifier.h.


The documentation for this class was generated from the following files: