aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2015-05-21 13:29:09 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-02 07:57:04 +0200
commitb4bbad18ef0d3b1643d2c78c911e854b777330b8 (patch)
treee9e89fabd8be10a0d0a3f744632a866f11cabfcd /src
parent75a4d512cfc9a451fa627a3487ffed102cc67cab (diff)
downloadbitcoin-b4bbad18ef0d3b1643d2c78c911e854b777330b8.tar.xz
Ignore getheaders requests when not synced.
Rebased-From: a1ba0778dd3c784046dea334e5d39f37eca264f7 Github-Pull: #6172
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 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())
{