MCPcopy Create free account
hub / github.com/ElementsProject/elements / UpdatedBlockTip

Method UpdatedBlockTip

src/zmq/zmqnotificationinterface.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130} // anonymous namespace
131
132void 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
142void CZMQNotificationInterface::TransactionAddedToMempool(const CTransactionRef& ptx, uint64_t mempool_sequence)
143{

Callers

nothing calls this directly

Calls 2

NotifyBlockMethod · 0.45

Tested by

no test coverage detected