diff options
author | ptschip <peter.tschipper@gmail.com> | 2015-12-05 09:02:02 -0800 |
---|---|---|
committer | ptschip <peter.tschipper@gmail.com> | 2015-12-15 07:41:44 -0800 |
commit | 39a525c21fd1b34df63ab30868423b97b708ee49 (patch) | |
tree | 4038a44ae37cf99b701af04523208125a4fcae42 /src/main.cpp | |
parent | 7a5040155ed59f8c9c51734bb2ee29f1593eaa6a (diff) |
Do not download transactions during inital sync
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 41fc0b8098..8752484462 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4563,7 +4563,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, { if (fBlocksOnly) LogPrint("net", "transaction (%s) inv sent in violation of protocol peer=%d\n", inv.hash.ToString(), pfrom->id); - else if (!fAlreadyHave && !fImporting && !fReindex) + else if (!fAlreadyHave && !fImporting && !fReindex && !IsInitialBlockDownload()) pfrom->AskFor(inv); } |