diff options
| author | Suhas Daftuar <[email protected]> | 2015-05-21 13:29:09 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2015-05-27 10:36:04 -0400 |
| commit | a1ba0778dd3c784046dea334e5d39f37eca264f7 (patch) | |
| tree | c3c3563080ed88e64f1d4eaea6c956d3ec1a943a /src/main.cpp | |
| parent | Merge pull request #5159 (diff) | |
| download | discoin-a1ba0778dd3c784046dea334e5d39f37eca264f7.tar.xz discoin-a1ba0778dd3c784046dea334e5d39f37eca264f7.zip | |
Ignore getheaders requests when not synced.
Diffstat (limited to 'src/main.cpp')
| -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 79ee4e55e..79a65a73e 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()) { |