Set KOMODO_LONGESTCHAIN

This commit is contained in:
jl777
2018-11-24 03:49:55 -11:00
parent 120cbbceed
commit ea8f6d6a33

View File

@@ -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;