MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / UpdatedBlockTip

Method UpdatedBlockTip

src/validationinterface.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void 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
146void CMainSignals::TransactionAddedToMempool(const CTransactionRef &ptx) {
147 m_internals->m_schedulerClient.AddToProcessQueue([ptx, this] {

Callers

nothing calls this directly

Calls 1

AddToProcessQueueMethod · 0.80

Tested by

no test coverage detected