Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 2,899 Lines • ▼ Show 20 Lines | do { | ||||
// Notify ValidationInterface subscribers | // Notify ValidationInterface subscribers | ||||
GetMainSignals().UpdatedBlockTip(pindexNewTip, pindexFork, | GetMainSignals().UpdatedBlockTip(pindexNewTip, pindexFork, | ||||
fInitialDownload); | fInitialDownload); | ||||
// Always notify the UI if a new block tip was connected | // Always notify the UI if a new block tip was connected | ||||
uiInterface.NotifyBlockTip(fInitialDownload, pindexNewTip); | uiInterface.NotifyBlockTip(fInitialDownload, pindexNewTip); | ||||
} | } | ||||
} | } | ||||
// When we reach this point, we switched to a new tip (stored in | |||||
// pindexNewTip). | |||||
if (nStopAtHeight && pindexNewTip && | if (nStopAtHeight && pindexNewTip && | ||||
pindexNewTip->nHeight >= nStopAtHeight) { | pindexNewTip->nHeight >= nStopAtHeight) { | ||||
StartShutdown(); | StartShutdown(); | ||||
} | } | ||||
// We check shutdown only after giving ActivateBestChainStep a chance to | // We check shutdown only after giving ActivateBestChainStep a chance to | ||||
// run once so that we never shutdown before connecting the genesis | // run once so that we never shutdown before connecting the genesis | ||||
▲ Show 20 Lines • Show All 2,779 Lines • Show Last 20 Lines |