From 133420523552c26e4ffbf86ad38a5b2f300f9e00 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 24 Nov 2018 04:15:44 -1100 Subject: [PATCH] Realize not initial download if in sync --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index e743c6d18..00a2412f5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2220,7 +2220,8 @@ CAmount GetBlockSubsidy(int nHeight, const Consensus::Params& consensusParams) bool IsInitialBlockDownload() { const CChainParams& chainParams = Params(); - + if ( KOMODO_INSYNC != 0 ) + return(false); // Once this function has returned false, it must remain false. static std::atomic latchToFalse{false}; // Optimization: pre-test latch before taking the lock. @@ -6896,7 +6897,7 @@ fprintf(stderr,"netmsg: %s\n", strCommand.c_str()); BlockMap::iterator mi = mapBlockIndex.find(hashStop); if (mi == mapBlockIndex.end()) { - fprintf(stderr,"mi == end()\n"); + //fprintf(stderr,"mi == end()\n"); return true; } pindex = (*mi).second;