aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2012-06-22 10:13:31 -0700
committerJeff Garzik <[email protected]>2012-06-22 10:13:31 -0700
commitd62a1947be5350ed60066ccacc7aba43bbdf48fb (patch)
treebe8d16631130b297b04ebc5903048b8b900e75db /src/main.cpp
parentMerge pull request #1502 from jgarzik/getrawmempool (diff)
parentIntroduce -debugnet option, thereby quieting some redundant debug messages (diff)
downloaddiscoin-d62a1947be5350ed60066ccacc7aba43bbdf48fb.tar.xz
discoin-d62a1947be5350ed60066ccacc7aba43bbdf48fb.zip
Merge pull request #1458 from jgarzik/tracenet
Introduce -tracenet option, thereby quieting some redundant debug messages
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6765ed5f0..a49d2a06b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3151,7 +3151,8 @@ bool SendMessages(CNode* pto, bool fSendTrickle)
const CInv& inv = (*pto->mapAskFor.begin()).second;
if (!AlreadyHave(txdb, inv))
{
- printf("sending getdata: %s\n", inv.ToString().c_str());
+ if (fDebugNet)
+ printf("sending getdata: %s\n", inv.ToString().c_str());
vGetData.push_back(inv);
if (vGetData.size() >= 1000)
{