@@ -1773,14 +1773,14 @@ void static InvalidChainFound(CBlockIndex* pindexNew)
17731773 if (!pindexBestInvalid || pindexNew->nChainWork > pindexBestInvalid->nChainWork )
17741774 pindexBestInvalid = pindexNew;
17751775
1776- LogPrintf (" %s: invalid block=%s height=%d log2_work=%.8g date=%s\n " , __func__,
1776+ LogPrintf (" %s: invalid block=%s height=%d date=%s\n " , __func__,
17771777 pindexNew->GetBlockHash ().ToString (), pindexNew->nHeight ,
1778- log (pindexNew-> nChainWork . getdouble ())/ log ( 2.0 ), DateTimeStrFormat (" %Y-%m-%d %H:%M:%S" ,
1778+ DateTimeStrFormat (" %Y-%m-%d %H:%M:%S" ,
17791779 pindexNew->GetBlockTime ()));
17801780 CBlockIndex *tip = chainActive.Tip ();
17811781 assert (tip);
1782- LogPrintf (" %s: current best=%s height=%d log2_work=%.8g date=%s\n " , __func__,
1783- tip->GetBlockHash ().ToString (), chainActive.Height (), log (tip-> nChainWork . getdouble ())/ log ( 2.0 ),
1782+ LogPrintf (" %s: current best=%s height=%d date=%s\n " , __func__,
1783+ tip->GetBlockHash ().ToString (), chainActive.Height (),
17841784 DateTimeStrFormat (" %Y-%m-%d %H:%M:%S" , tip->GetBlockTime ()));
17851785 CheckForkWarningConditions ();
17861786}
@@ -3038,9 +3038,9 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
30383038 }
30393039 }
30403040 }
3041- LogPrintf (" %s: new best=%s height=%d version=0x%08x log2_work=%.8g tx=%lu date='%s' progress=%f cache=%.1fMiB(%utx)" , __func__,
3041+ LogPrintf (" %s: new best=%s height=%d version=0x%08x tx=%lu date='%s' progress=%f cache=%.1fMiB(%utx)" , __func__,
30423042 chainActive.Tip ()->GetBlockHash ().ToString (), chainActive.Height (), chainActive.Tip ()->nVersion ,
3043- log (chainActive. Tip ()-> nChainWork . getdouble ())/ log ( 2.0 ), (unsigned long )chainActive.Tip ()->nChainTx ,
3043+ (unsigned long )chainActive.Tip ()->nChainTx ,
30443044 DateTimeStrFormat (" %Y-%m-%d %H:%M:%S" , chainActive.Tip ()->GetBlockTime ()),
30453045 GuessVerificationProgress (chainActive.Tip (), chainParams.GetConsensus ().nPowTargetSpacing ),
30463046 pcoinsTip->DynamicMemoryUsage () * (1.0 / (1 <<20 )), pcoinsTip->GetCacheSize ());
0 commit comments