From 329e181592023a077358599ba340ef94290497f6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 5 Jul 2019 06:59:01 -1100 Subject: [PATCH] Declare fFetch --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 5407c9e91..9544c967a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8243,6 +8243,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle) state.fShouldBan = false; } komodo_nSPV(pto); + bool fFetch = false; if ( KOMODO_NSPV == 0 ) { BOOST_FOREACH(const CBlockReject& reject, state.rejects) @@ -8252,7 +8253,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle) // Start block sync if (pindexBestHeader == NULL) pindexBestHeader = chainActive.Tip(); - bool fFetch = state.fPreferredDownload || (nPreferredDownload == 0 && !pto->fClient && !pto->fOneShot); // Download if this is a nice peer, or we have no nice peers and this one might do. + fFetch = state.fPreferredDownload || (nPreferredDownload == 0 && !pto->fClient && !pto->fOneShot); // Download if this is a nice peer, or we have no nice peers and this one might do. if (!state.fSyncStarted && !pto->fClient && !fImporting && !fReindex && pindexBestHeader!=0) { // Only actively request headers from a single peer, unless we're close to today. if ((nSyncStarted == 0 && fFetch) || pindexBestHeader->GetBlockTime() > GetAdjustedTime() - 24 * 60 * 60) {