diff --git a/src/validation.cpp b/src/validation.cpp index db78491b05..6da834a081 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4020,6 +4020,12 @@ bool ProcessNewBlockHeaders(const std::vector& headers, CValidatio } } NotifyHeaderTip(); + { + LOCK(cs_main); + if (::ChainstateActive().IsInitialBlockDownload() && ppindex && *ppindex) { + LogPrintf("Synchronizing blockheaders, height: %d (~%.2f%%)\n", (*ppindex)->nHeight, 100.0/((*ppindex)->nHeight+(GetAdjustedTime() - (*ppindex)->GetBlockTime()) / Params().GetConsensus().nPowTargetSpacing) * (*ppindex)->nHeight); + } + } return true; }