From e9d56b2cda7cdd31306f36aaa36ed29983e83dab Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 Jul 2018 06:15:09 -1100 Subject: [PATCH] Mining_height --- src/miner.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/miner.cpp b/src/miner.cpp index 5590a26ad..1750e27ca 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -913,8 +913,8 @@ void static BitcoinMiner() { if ( KOMODO_INSYNC == 0 ) { - fprintf(stderr,"Mining when blockchain might not be in sync longest.%d vs %d\n",KOMODO_LONGESTCHAIN,(int32_t)pindexNew->nHeight); - if ( KOMODO_LONGESTCHAIN != 0 && pindexNew->nHeight >= KOMODO_LONGESTCHAIN ) + fprintf(stderr,"Mining when blockchain might not be in sync longest.%d vs %d\n",KOMODO_LONGESTCHAIN,Mining_height); + if ( KOMODO_LONGESTCHAIN != 0 && Mining_height >= KOMODO_LONGESTCHAIN ) KOMODO_INSYNC = 1; sleep(3); }