From b4bbad18ef0d3b1643d2c78c911e854b777330b8 Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Thu, 21 May 2015 13:29:09 -0400 Subject: Ignore getheaders requests when not synced. Rebased-From: a1ba0778dd3c784046dea334e5d39f37eca264f7 Github-Pull: #6172 --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 99f4d49438..efb7fb3f87 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4255,6 +4255,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, LOCK(cs_main); + if (IsInitialBlockDownload()) + return true; + CBlockIndex* pindex = NULL; if (locator.IsNull()) { -- cgit v1.2.3