diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-02 07:54:07 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-02 07:56:02 +0200 |
commit | 88a7ead5de8c0d8095dbf0b70e016103025bc553 (patch) | |
tree | 555cf0fa0a133180cd36fce48902dce6e396c936 | |
parent | 87550eefc1131132e940efcaf296bb399eeb02df (diff) | |
parent | a1ba0778dd3c784046dea334e5d39f37eca264f7 (diff) |
Merge pull request #6172
a1ba077 Ignore getheaders requests when not synced. (Suhas Daftuar)
-rw-r--r-- | src/main.cpp | 3 |
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()) { |