@ -2231,13 +2231,13 @@ void static UpdateTip(const CBlockIndex *pindexNew, const CChainParams& chainPar
DoWarning ( strWarning ) ;
}
}
LogPrintf ( " %s: new best=%s height=%d version=0x%08x log2_work=%.8g tx=%lu date='%s' progress=%f cache=%.1fMiB(%utxo) " , __func__ ,
LogPrintf ( " %s: new best=%s height=%d version=0x%08x log2_work=%.8g tx=%lu date='%s' progress=%f cache=%.1fMiB(%utxo) " , __func__ , /* Continued */
pindexNew - > GetBlockHash ( ) . ToString ( ) , pindexNew - > nHeight , pindexNew - > nVersion ,
log ( pindexNew - > nChainWork . getdouble ( ) ) / log ( 2.0 ) , ( unsigned long ) pindexNew - > nChainTx ,
FormatISO8601DateTime ( pindexNew - > GetBlockTime ( ) ) ,
GuessVerificationProgress ( chainParams . TxData ( ) , pindexNew ) , pcoinsTip - > DynamicMemoryUsage ( ) * ( 1.0 / ( 1 < < 20 ) ) , pcoinsTip - > GetCacheSize ( ) ) ;
if ( ! warningMessages . empty ( ) )
LogPrintf ( " warning='%s' " , boost : : algorithm : : join ( warningMessages , " , " ) ) ;
LogPrintf ( " warning='%s' " , boost : : algorithm : : join ( warningMessages , " , " ) ) ; /* Continued */
LogPrintf ( " \n " ) ;
}
@ -3903,14 +3903,14 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
int nGoodTransactions = 0 ;
CValidationState state ;
int reportDone = 0 ;
LogPrintf ( " [0%%]... " ) ;
LogPrintf ( " [0%%]... " ) ; /* Continued */
for ( CBlockIndex * pindex = chainActive . Tip ( ) ; pindex & & pindex - > pprev ; pindex = pindex - > pprev )
{
boost : : this_thread : : interruption_point ( ) ;
int percentageDone = std : : max ( 1 , std : : min ( 99 , ( int ) ( ( ( double ) ( chainActive . Height ( ) - pindex - > nHeight ) ) / ( double ) nCheckDepth * ( nCheckLevel > = 4 ? 50 : 100 ) ) ) ) ;
if ( reportDone < percentageDone / 10 ) {
// report every 10% step
LogPrintf ( " [%d%%]... " , percentageDone ) ;
LogPrintf ( " [%d%%]... " , percentageDone ) ; /* Continued */
reportDone = percentageDone / 10 ;
}
uiInterface . ShowProgress ( _ ( " Verifying blocks... " ) , percentageDone , false ) ;