Merge pull request #1511 from jgarzik/quieten2

Quieten 'getdata' P2P message output
This commit is contained in:
Jeff Garzik 2012-06-27 09:06:59 -07:00
commit e75acc006e
1 changed files with 5 additions and 1 deletions

View File

@ -2574,11 +2574,15 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
return error("message getdata size() = %d", vInv.size());
}
if (fDebugNet || (vInv.size() != 1))
printf("received getdata (%d invsz)\n", vInv.size());
BOOST_FOREACH(const CInv& inv, vInv)
{
if (fShutdown)
return true;
printf("received getdata for: %s\n", inv.ToString().c_str());
if (fDebugNet || (vInv.size() == 1))
printf("received getdata for: %s\n", inv.ToString().c_str());
if (inv.type == MSG_BLOCK)
{