Do not download transactions during inital sync

Github-Pull: #7164
Rebased-From: 39a525c21f
This commit is contained in:
ptschip
2015-12-05 09:02:02 -08:00
committed by MarcoFalke
parent 18b3c3ced8
commit 90955940d5
4 changed files with 37 additions and 5 deletions

View File

@@ -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);
}