From a9a06711a54b9a6777f5abbbd48988ba60c79208 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 15 Mar 2017 10:27:39 +0200 Subject: [PATCH] Test --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e27561820..f380dab81 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1528,18 +1528,18 @@ bool IsInitialBlockDownload() LOCK(cs_main); if (fImporting || fReindex) { - //fprintf(stderr,"fImporting %d || %d fReindex\n",(int32_t)fImporting,(int32_t)fReindex); + fprintf(stderr,"IsInitialBlockDownload: fImporting %d || %d fReindex\n",(int32_t)fImporting,(int32_t)fReindex); return true; } if (fCheckpointsEnabled && chainActive.Height() < Checkpoints::GetTotalBlocksEstimate(chainParams.Checkpoints())) { - //fprintf(stderr,"checkpoint -> initialdownload\n"); + fprintf(stderr,"IsInitialBlockDownload: checkpoint -> initialdownload\n"); return true; } static bool lockIBDState = false; if (lockIBDState) { - //fprintf(stderr,"lockIBDState true %d < %d\n",chainActive.Height(),pindexBestHeader->nHeight - 10); + fprintf(stderr,"lockIBDState true %d < %d\n",chainActive.Height(),pindexBestHeader->nHeight - 10); return false; } bool state; @@ -1547,9 +1547,9 @@ bool IsInitialBlockDownload() state = (chainActive.Height() < pindexBestHeader->nHeight - 24*6) || pindexBestHeader->GetBlockTime() < (GetTime() - chainParams.MaxTipAge()); else state = (chainActive.Height() < pindexBestHeader->nHeight - 100); + fprintf(stderr,"state.%d ht.%d t.%d\n",state,(int32_t)chainActive.Height(),(int32_t)pindexBestHeader->GetBlockTime()); if (!state) { - fprintf(stderr,"lockIBDState true ht.%d t.%d\n",(int32_t)chainActive.Height(),(int32_t)pindexBestHeader->GetBlockTime()); lockIBDState = true; } return state;