Do not download transactions during inital sync

This commit is contained in:
ptschip
2015-12-05 09:02:02 -08:00
committed by lateminer
parent 8a0d1a55f9
commit 99c318c13f
4 changed files with 37 additions and 5 deletions

View File

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