Browse Source

Add progress to initial display of latest block downloaded.

0.10
R E Broadley 11 years ago
parent
commit
c4656e0d88
  1. 5
      src/main.cpp

5
src/main.cpp

@ -2743,9 +2743,10 @@ bool static LoadBlockIndexDB() @@ -2743,9 +2743,10 @@ bool static LoadBlockIndexDB()
if (it == mapBlockIndex.end())
return true;
chainActive.SetTip(it->second);
LogPrintf("LoadBlockIndexDB(): hashBestChain=%s height=%d date=%s\n",
LogPrintf("LoadBlockIndexDB(): hashBestChain=%s height=%d date=%s progress=%f\n",
chainActive.Tip()->GetBlockHash().ToString(), chainActive.Height(),
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", chainActive.Tip()->GetBlockTime()));
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", chainActive.Tip()->GetBlockTime()),
Checkpoints::GuessVerificationProgress(chainActive.Tip()));
return true;
}

Loading…
Cancel
Save