diff options
| author | Gavin Andresen <[email protected]> | 2013-10-30 15:42:31 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-10-30 15:42:31 -0700 |
| commit | ef4b518aead6c77a1cc8875a33fd116235a21d6b (patch) | |
| tree | ecefda8d6e6317044addc7a5c0991bac55454216 /src/main.cpp | |
| parent | Merge pull request #3160 from Diapolo/walletview (diff) | |
| parent | re-work -debug switch handling (diff) | |
| download | discoin-ef4b518aead6c77a1cc8875a33fd116235a21d6b.tar.xz discoin-ef4b518aead6c77a1cc8875a33fd116235a21d6b.zip | |
Merge pull request #3067 from Diapolo/debug-switch
re-work -debug switch handling
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3d339b4fd..640fbac8b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3544,10 +3544,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) return error("message getdata size() = %"PRIszu"", vInv.size()); } - if (fDebugNet || (vInv.size() != 1)) + if (fDebug || (vInv.size() != 1)) LogPrint("net", "received getdata (%"PRIszu" invsz)\n", vInv.size()); - if ((fDebugNet && vInv.size() > 0) || (vInv.size() == 1)) + if ((fDebug && vInv.size() > 0) || (vInv.size() == 1)) LogPrint("net", "received getdata for: %s\n", vInv[0].ToString().c_str()); pfrom->vRecvGetData.insert(pfrom->vRecvGetData.end(), vInv.begin(), vInv.end()); @@ -4213,7 +4213,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle) const CInv& inv = (*pto->mapAskFor.begin()).second; if (!AlreadyHave(inv)) { - if (fDebugNet) + if (fDebug) LogPrint("net", "sending getdata: %s\n", inv.ToString().c_str()); vGetData.push_back(inv); if (vGetData.size() >= 1000) |