Do not download transactions during inital sync

This commit is contained in:
ptschip
2015-12-05 09:02:02 -08:00
parent 7a5040155e
commit 39a525c21f
4 changed files with 37 additions and 5 deletions

View File

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