| 134 | } |
| 135 | |
| 136 | void CMainSignals::UpdatedBlockTip(const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) { |
| 137 | // Dependencies exist that require UpdatedBlockTip events to be delivered in the order in which |
| 138 | // the chain actually updates. One way to ensure this is for the caller to invoke this signal |
| 139 | // in the same critical section where the chain is updated |
| 140 | |
| 141 | m_internals->m_schedulerClient.AddToProcessQueue([pindexNew, pindexFork, fInitialDownload, this] { |
| 142 | m_internals->UpdatedBlockTip(pindexNew, pindexFork, fInitialDownload); |
| 143 | }); |
| 144 | } |
| 145 | |
| 146 | void CMainSignals::TransactionAddedToMempool(const CTransactionRef &ptx) { |
| 147 | m_internals->m_schedulerClient.AddToProcessQueue([ptx, this] { |
nothing calls this directly
no test coverage detected