Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 3,984 Lines • ▼ Show 20 Lines | bool ProcessNewBlockHeaders(const Config &config, | ||||
if (ppindex) { | if (ppindex) { | ||||
*ppindex = pindex; | *ppindex = pindex; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (NotifyHeaderTip()) { | if (NotifyHeaderTip()) { | ||||
LOCK(cs_main); | |||||
if (::ChainstateActive().IsInitialBlockDownload() && ppindex && | if (::ChainstateActive().IsInitialBlockDownload() && ppindex && | ||||
*ppindex) { | *ppindex) { | ||||
LogPrintf("Synchronizing blockheaders, height: %d (~%.2f%%)\n", | LogPrintf("Synchronizing blockheaders, height: %d (~%.2f%%)\n", | ||||
(*ppindex)->nHeight, | (*ppindex)->nHeight, | ||||
100.0 / | 100.0 / | ||||
((*ppindex)->nHeight + | ((*ppindex)->nHeight + | ||||
(GetAdjustedTime() - (*ppindex)->GetBlockTime()) / | (GetAdjustedTime() - (*ppindex)->GetBlockTime()) / | ||||
Params().GetConsensus().nPowTargetSpacing) * | Params().GetConsensus().nPowTargetSpacing) * | ||||
▲ Show 20 Lines • Show All 1,805 Lines • Show Last 20 Lines |