aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2015-05-21 13:29:09 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2015-05-27 10:36:04 -0400
commita1ba0778dd3c784046dea334e5d39f37eca264f7 (patch)
treec3c3563080ed88e64f1d4eaea6c956d3ec1a943a /src
parent2cc1372190c01bc6aae70f94fcc3b81ae4f7aba3 (diff)
downloadbitcoin-a1ba0778dd3c784046dea334e5d39f37eca264f7.tar.xz
Ignore getheaders requests when not synced.
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 79ee4e55ec..79a65a73eb 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())
{