diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2015-05-21 13:29:09 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2015-05-27 10:36:04 -0400 |
commit | a1ba0778dd3c784046dea334e5d39f37eca264f7 (patch) | |
tree | c3c3563080ed88e64f1d4eaea6c956d3ec1a943a | |
parent | 2cc1372190c01bc6aae70f94fcc3b81ae4f7aba3 (diff) |
Ignore getheaders requests when not synced.
-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 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()) { |