Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/zmqnotificationinterface.cpp
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | if (pcontext) { | ||||
i != notifiers.end(); ++i) { | i != notifiers.end(); ++i) { | ||||
CZMQAbstractNotifier *notifier = *i; | CZMQAbstractNotifier *notifier = *i; | ||||
LogPrint(BCLog::ZMQ, " Shutdown notifier %s at %s\n", | LogPrint(BCLog::ZMQ, " Shutdown notifier %s at %s\n", | ||||
notifier->GetType(), notifier->GetAddress()); | notifier->GetType(), notifier->GetAddress()); | ||||
notifier->Shutdown(); | notifier->Shutdown(); | ||||
} | } | ||||
zmq_ctx_destroy(pcontext); | zmq_ctx_destroy(pcontext); | ||||
pcontext = 0; | pcontext = nullptr; | ||||
} | } | ||||
} | } | ||||
void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, | void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, | ||||
const CBlockIndex *pindexFork, | const CBlockIndex *pindexFork, | ||||
bool fInitialDownload) { | bool fInitialDownload) { | ||||
// In IBD or blocks were disconnected without any new ones | // In IBD or blocks were disconnected without any new ones | ||||
if (fInitialDownload || pindexNew == pindexFork) return; | if (fInitialDownload || pindexNew == pindexFork) return; | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |