Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/zmqabstractnotifier.h
Show All 38 Lines | void SetOutboundMessageHighWaterMark(const int sndhwm) { | ||||
if (sndhwm >= 0) { | if (sndhwm >= 0) { | ||||
outbound_message_high_water_mark = sndhwm; | outbound_message_high_water_mark = sndhwm; | ||||
} | } | ||||
} | } | ||||
virtual bool Initialize(void *pcontext) = 0; | virtual bool Initialize(void *pcontext) = 0; | ||||
virtual void Shutdown() = 0; | virtual void Shutdown() = 0; | ||||
// Notifies of ConnectTip result, i.e., new active tip only | |||||
virtual bool NotifyBlock(const CBlockIndex *pindex); | virtual bool NotifyBlock(const CBlockIndex *pindex); | ||||
// Notifies of every block connection | |||||
virtual bool NotifyBlockConnect(const CBlockIndex *pindex); | |||||
// Notifies of every block disconnection | |||||
virtual bool NotifyBlockDisconnect(const CBlockIndex *pindex); | |||||
// Notifies of every mempool acceptance | |||||
virtual bool NotifyTransactionAcceptance(const CTransaction &transaction, | |||||
uint64_t mempool_sequence); | |||||
// Notifies of every mempool removal, except inclusion in blocks | |||||
virtual bool NotifyTransactionRemoval(const CTransaction &transaction, | |||||
uint64_t mempool_sequence); | |||||
// Notifies of transactions added to mempool or appearing in blocks | |||||
virtual bool NotifyTransaction(const CTransaction &transaction); | virtual bool NotifyTransaction(const CTransaction &transaction); | ||||
protected: | protected: | ||||
void *psocket; | void *psocket; | ||||
std::string type; | std::string type; | ||||
std::string address; | std::string address; | ||||
int outbound_message_high_water_mark; // aka SNDHWM | int outbound_message_high_water_mark; // aka SNDHWM | ||||
}; | }; | ||||
#endif // BITCOIN_ZMQ_ZMQABSTRACTNOTIFIER_H | #endif // BITCOIN_ZMQ_ZMQABSTRACTNOTIFIER_H |