Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/zmqnotificationinterface.cpp
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | for (std::list<CZMQAbstractNotifier *>::iterator i = notifiers.begin(); | ||||
notifier->Shutdown(); | notifier->Shutdown(); | ||||
i = notifiers.erase(i); | i = notifiers.erase(i); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
void CZMQNotificationInterface::BlockConnected( | void CZMQNotificationInterface::BlockConnected( | ||||
const std::shared_ptr<const CBlock> &pblock, | const std::shared_ptr<const CBlock> &pblock, | ||||
const CBlockIndex *pindexConnected, | const CBlockIndex *pindexConnected) { | ||||
const std::vector<CTransactionRef> &vtxConflicted) { | |||||
for (const CTransactionRef &ptx : pblock->vtx) { | for (const CTransactionRef &ptx : pblock->vtx) { | ||||
// Do a normal notify for each transaction added in the block | // Do a normal notify for each transaction added in the block | ||||
TransactionAddedToMempool(ptx); | TransactionAddedToMempool(ptx); | ||||
} | } | ||||
} | } | ||||
void CZMQNotificationInterface::BlockDisconnected( | void CZMQNotificationInterface::BlockDisconnected( | ||||
const std::shared_ptr<const CBlock> &pblock, | const std::shared_ptr<const CBlock> &pblock, | ||||
Show All 9 Lines |