diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2015-05-21 13:29:09 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-02 07:57:04 +0200 |
commit | b4bbad18ef0d3b1643d2c78c911e854b777330b8 (patch) | |
tree | e9e89fabd8be10a0d0a3f744632a866f11cabfcd /src/main.cpp | |
parent | 75a4d512cfc9a451fa627a3487ffed102cc67cab (diff) | |
download | bitcoin-b4bbad18ef0d3b1643d2c78c911e854b777330b8.tar.xz |
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 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()) { |