aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-02 07:54:07 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-02 07:56:02 +0200
commit88a7ead5de8c0d8095dbf0b70e016103025bc553 (patch)
tree555cf0fa0a133180cd36fce48902dce6e396c936
parent87550eefc1131132e940efcaf296bb399eeb02df (diff)
parenta1ba0778dd3c784046dea334e5d39f37eca264f7 (diff)
Merge pull request #6172
a1ba077 Ignore getheaders requests when not synced. (Suhas Daftuar)
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
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())
{