| 174 | } |
| 175 | |
| 176 | void CZMQNotificationInterface::BlockDisconnected(const std::shared_ptr<const CBlock>& pblock, const CBlockIndex* pindexDisconnected) |
| 177 | { |
| 178 | for (const CTransactionRef& ptx : pblock->vtx) { |
| 179 | const CTransaction& tx = *ptx; |
| 180 | TryForEachAndRemoveFailed(notifiers, [&tx](CZMQAbstractNotifier* notifier) { |
| 181 | return notifier->NotifyTransaction(tx); |
| 182 | }); |
| 183 | } |
| 184 | |
| 185 | // Next we notify BlockDisconnect listeners for *all* blocks |
| 186 | TryForEachAndRemoveFailed(notifiers, [pindexDisconnected](CZMQAbstractNotifier* notifier) { |
| 187 | return notifier->NotifyBlockDisconnect(pindexDisconnected); |
| 188 | }); |
| 189 | } |
| 190 | |
| 191 | CZMQNotificationInterface* g_zmq_notification_interface = nullptr; |
nothing calls this directly
no test coverage detected