diff --git a/src/init.cpp b/src/init.cpp index bf5b82216..ce834c54d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1489,7 +1489,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) if ( checkval != fAddressIndex ) { pblocktree->WriteFlag("addressindex", fAddressIndex); - fprintf(stderr,"set addressindex, will reindex. sorry will take a while.\n"); + fprintf(stderr,"set addressindex, will reindex. could take a while.\n"); fReindex = true; } fSpentIndex = GetBoolArg("-spentindex", DEFAULT_SPENTINDEX); @@ -1497,7 +1497,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) if ( checkval != fSpentIndex ) { pblocktree->WriteFlag("spentindex", fSpentIndex); - fprintf(stderr,"set spentindex, will reindex. sorry will take a while.\n"); + fprintf(stderr,"set spentindex, will reindex. could take a while.\n"); fReindex = true; } } diff --git a/src/main.cpp b/src/main.cpp index d5bee3c41..50a11328e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3784,6 +3784,9 @@ int32_t komodo_activate_sapling(CBlockIndex *pindex) fprintf(stderr,"komodo_activate_sapling null pindex\n"); return(0); } + height = pindex->GetHeight(); + blocktime = (uint32_t)pindex->nTime; + fprintf(stderr,"komodo_activate_sapling.%d starting blocktime %u cmp.%d\n",height,blocktime,blocktime > KOMODO_SAPLING_ACTIVATION); for (i=0; i<60; i++) { if ( (prev= pindex->pprev) == 0 ) @@ -3797,14 +3800,14 @@ int32_t komodo_activate_sapling(CBlockIndex *pindex) } height = pindex->GetHeight(); blocktime = (uint32_t)pindex->nTime; - //fprintf(stderr,"starting blocktime %u cmp.%d\n",blocktime,blocktime > KOMODO_SAPLING_ACTIVATION); + fprintf(stderr,"starting blocktime %u cmp.%d\n",blocktime,blocktime > KOMODO_SAPLING_ACTIVATION); if ( blocktime > KOMODO_SAPLING_ACTIVATION ) // find the earliest transition { while ( (prev= pindex->pprev) != 0 ) { prevht = prev->GetHeight(); prevtime = (uint32_t)prev->nTime; - //fprintf(stderr,"(%d, %u) -> (%d, %u)\n",prevht,prevtime,height,blocktime); + fprintf(stderr,"(%d, %u) -> (%d, %u)\n",prevht,prevtime,height,blocktime); if ( prevht+1 != height ) { fprintf(stderr,"komodo_activate_sapling: unexpected non-contiguous ht %d vs %d\n",prevht,height);