Browse Source

Quieten 'getdata' P2P message output

Output one message per getdata, not one message per 'inv' entry.
0.8
Jeff Garzik 13 years ago committed by Jeff Garzik
parent
commit
983e4bdef0
  1. 4
      src/main.cpp

4
src/main.cpp

@ -2575,10 +2575,14 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) @@ -2575,10 +2575,14 @@ 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;
if (fDebugNet || (vInv.size() == 1))
printf("received getdata for: %s\n", inv.ToString().c_str());
if (inv.type == MSG_BLOCK)

Loading…
Cancel
Save