diff options
| author | Suhas Daftuar <[email protected]> | 2015-05-21 13:29:09 -0400 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-02 07:57:04 +0200 |
| commit | b4bbad18ef0d3b1643d2c78c911e854b777330b8 (patch) | |
| tree | e9e89fabd8be10a0d0a3f744632a866f11cabfcd /src/main.cpp | |
| parent | Fix off-by-one error w/ nLockTime in the wallet (diff) | |
| download | discoin-b4bbad18ef0d3b1643d2c78c911e854b777330b8.tar.xz discoin-b4bbad18ef0d3b1643d2c78c911e854b777330b8.zip | |
Ignore getheaders requests when not synced.
Rebased-From: a1ba0778dd3c784046dea334e5d39f37eca264f7
Github-Pull: #6172
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 99f4d4943..efb7fb3f8 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()) { |