From a1ba0778dd3c784046dea334e5d39f37eca264f7 Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Thu, 21 May 2015 13:29:09 -0400 Subject: [PATCH] Ignore getheaders requests when not synced. --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 79ee4e55e..79a65a73e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4174,6 +4174,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, LOCK(cs_main); + if (IsInitialBlockDownload()) + return true; + CBlockIndex* pindex = NULL; if (locator.IsNull()) {