@@ -2080,7 +2080,7 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
20802080 chainActive.Tip ()->GetBlockHash ().ToString (), chainActive.Height (), chainActive.Tip ()->nVersion ,
20812081 log (chainActive.Tip ()->nChainWork .getdouble ())/log (2.0 ), (unsigned long )chainActive.Tip ()->nChainTx ,
20822082 DateTimeStrFormat (" %Y-%m-%d %H:%M:%S" , chainActive.Tip ()->GetBlockTime ()),
2083- GuessVerificationProgress (chainParams.Checkpoints (), chainActive.Tip ()), pcoinsTip->DynamicMemoryUsage () * (1.0 / (1 <<20 )), pcoinsTip->GetCacheSize ());
2083+ GuessVerificationProgress (chainParams.TxData (), chainActive.Tip ()), pcoinsTip->DynamicMemoryUsage () * (1.0 / (1 <<20 )), pcoinsTip->GetCacheSize ());
20842084 if (!warningMessages.empty ())
20852085 LogPrintf (" warning='%s'" , boost::algorithm::join (warningMessages, " , " ));
20862086 LogPrintf (" \n " );
@@ -3445,7 +3445,7 @@ bool static LoadBlockIndexDB(const CChainParams& chainparams)
34453445 LogPrintf (" %s: hashBestChain=%s height=%d date=%s progress=%f\n " , __func__,
34463446 chainActive.Tip ()->GetBlockHash ().ToString (), chainActive.Height (),
34473447 DateTimeStrFormat (" %Y-%m-%d %H:%M:%S" , chainActive.Tip ()->GetBlockTime ()),
3448- GuessVerificationProgress (chainparams.Checkpoints (), chainActive.Tip ()));
3448+ GuessVerificationProgress (chainparams.TxData (), chainActive.Tip ()));
34493449
34503450 return true ;
34513451}
@@ -4152,7 +4152,7 @@ void DumpMempool(void)
41524152static const double SIGCHECK_VERIFICATION_FACTOR = 5.0 ;
41534153
41544154// ! Guess how far we are in the verification process at the given block index
4155- double GuessVerificationProgress (const CCheckpointData & data, CBlockIndex *pindex, bool fSigchecks ) {
4155+ double GuessVerificationProgress (const ChainTxData & data, CBlockIndex *pindex, bool fSigchecks ) {
41564156 if (pindex==NULL )
41574157 return 0.0 ;
41584158
0 commit comments