diff options
author | ptschip <peter.tschipper@gmail.com> | 2015-12-05 09:02:02 -0800 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-04-27 22:34:47 +0200 |
commit | 90955940d5bbe037d512699c1bfca2689018daea (patch) | |
tree | 31644840e950f5b933eded3dd2147401abfdf4eb /src/main.cpp | |
parent | 18b3c3ced8126301711c69a971de0210f2eb8790 (diff) | |
download | bitcoin-90955940d5bbe037d512699c1bfca2689018daea.tar.xz |
Do not download transactions during inital sync
Github-Pull: #7164
Rebased-From: 39a525c21fd1b34df63ab30868423b97b708ee49
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 f85ac33177..7d3bb2a3cb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4845,7 +4845,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); } |