CZMQNotificationInterface

Validation-interface listener that fans node events out to the configured ZMQ notifiers.

Synopsis

Declared in <zmq/zmqnotificationinterface.h>

class CZMQNotificationInterface final
    : public CValidationInterface

Base Classes

NameDescription
CValidationInterfaceImplement this to subscribe to events generated in validation and mempool

Member Functions

NameDescription
~CZMQNotificationInterface [destructor]Shut down all notifiers and destroy the interface.
GetActiveNotifiers List the notifiers that are currently active.

Static Member Functions

NameDescription
Create Create the ZMQ notification interface from the configured endpoints.

Protected Member Functions

NameDescription
ActiveTipChange [virtual]Notifies listeners any time the block chain tip changes, synchronously.
BlockChecked [virtual]Notifies listeners of a block validation result. If the provided BlockValidationState IsValid, the provided block is guaranteed to be the current best block at the time the callback was generated (not necessarily now).
BlockConnected BlockConnected overloads
BlockDisconnected BlockDisconnected overloads
ChainStateFlushed [virtual]Notifies listeners of the new active block chain on-disk.
Initialize Initialize the ZMQ context and all notifiers.
MempoolTransactionsRemovedForBlock [virtual]Notifies listeners of transactions removed from the mempool as as a result of new block being connected. MempoolTransactionsRemovedForBlock will be fired before BlockConnected.
NewPoWValidBlock [virtual]Notifies listeners that a block which builds directly on our current tip has been received and connected to the headers tree, though not validated yet.
Shutdown Shut down all notifiers and destroy the ZMQ context.
TransactionAddedToMempool [virtual]Handle a transaction being added to the mempool.
TransactionRemovedFromMempool [virtual]Handle a transaction being removed from the mempool.
UpdatedBlockTip [virtual]Handle the active chain tip being updated.