Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 929 Lines • ▼ Show 20 Lines | bool CChainState::IsInitialBlockDownload() const { | ||||
LogPrintf("Leaving InitialBlockDownload (latching to false)\n"); | LogPrintf("Leaving InitialBlockDownload (latching to false)\n"); | ||||
m_cached_finished_ibd.store(true, std::memory_order_relaxed); | m_cached_finished_ibd.store(true, std::memory_order_relaxed); | ||||
return false; | return false; | ||||
} | } | ||||
static CBlockIndex const *pindexBestForkTip = nullptr; | static CBlockIndex const *pindexBestForkTip = nullptr; | ||||
static CBlockIndex const *pindexBestForkBase = nullptr; | static CBlockIndex const *pindexBestForkBase = nullptr; | ||||
BlockMap &BlockIndex() { | |||||
LOCK(::cs_main); | |||||
return g_chainman.m_blockman.m_block_index; | |||||
} | |||||
static void AlertNotify(const std::string &strMessage) { | static void AlertNotify(const std::string &strMessage) { | ||||
uiInterface.NotifyAlertChanged(); | uiInterface.NotifyAlertChanged(); | ||||
#if defined(HAVE_SYSTEM) | #if defined(HAVE_SYSTEM) | ||||
std::string strCmd = gArgs.GetArg("-alertnotify", ""); | std::string strCmd = gArgs.GetArg("-alertnotify", ""); | ||||
if (strCmd.empty()) { | if (strCmd.empty()) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 5,213 Lines • Show Last 20 Lines |