| 130 | } // anonymous namespace |
| 131 | |
| 132 | void CZMQNotificationInterface::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) |
| 133 | { |
| 134 | if (fInitialDownload || pindexNew == pindexFork) // In IBD or blocks were disconnected without any new ones |
| 135 | return; |
| 136 | |
| 137 | TryForEachAndRemoveFailed(notifiers, [pindexNew](CZMQAbstractNotifier* notifier) { |
| 138 | return notifier->NotifyBlock(pindexNew); |
| 139 | }); |
| 140 | } |
| 141 | |
| 142 | void CZMQNotificationInterface::TransactionAddedToMempool(const CTransactionRef& ptx, uint64_t mempool_sequence) |
| 143 | { |
nothing calls this directly
no test coverage detected