From ea8f6d6a33fc52bf9fdf94f6d3d3c45a1274cb80 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Nov 2018 03:49:55 -1100 Subject: [PATCH] Set KOMODO_LONGESTCHAIN --- src/miner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/miner.cpp b/src/miner.cpp index e7f7f3270..28a53e3f0 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -1556,6 +1556,7 @@ void static BitcoinMiner() { if ( KOMODO_INSYNC == 0 ) { + KOMODO_LONGESTCHAIN = 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 = Mining_height;