diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-06-27 09:06:59 -0700 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2012-06-27 09:06:59 -0700 |
commit | e75acc006e8bc5c44d1d6e6c3b027fe28d8c743b (patch) | |
tree | 3b91abf8d4205de58f2e8c52def76cd51f1043d8 | |
parent | abbb9a829c6a381c7df1041ccfd2adebce86eafe (diff) | |
parent | 983e4bdef00534d8d5277617f4d84fc326834957 (diff) |
Merge pull request #1511 from jgarzik/quieten2
Quieten 'getdata' P2P message output
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6e55e69106..d2cb154c1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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) { |