Skip to content

Commit

Permalink
Added title in debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sn-ntu committed Dec 17, 2017
1 parent 977f234 commit cdecdf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4892,7 +4892,7 @@ static bool IsSuperMajority(int minVersion, const CBlockIndex *pstart, unsigned
bool ProcessNewBlock(CValidationState &state, const CChainParams &chainparams, CNode *pfrom, const CBlock *pblock,
bool fForceProcessing, const CDiskBlockPos *dbp, bool fMayBanPeerIfInvalid) {
int nHeight = getNHeight(pblock->GetBlockHeader());
LogPrint("ProcessNewBlock nHeight=%s, blockHash:%s\n", nHeight, pblock->GetHash().ToString());
LogPrint("ProcessNewBlock", "ProcessNewBlock nHeight=%s, blockHash:%s\n", nHeight, pblock->GetHash().ToString());
// LogPrint("ProcessNewBlock", "block=%s", pblock->ToString());
{
LOCK(cs_main);
Expand Down Expand Up @@ -6641,7 +6641,7 @@ bool static ProcessMessage(CNode *pfrom, string strCommand, CDataStream &vRecv,
pfrom->PushMessage(NetMsgType::GETDATA, vToFetch);

} else if (strCommand == NetMsgType::GETDATA) {
LogPrint("ProcessMessage=%s\n", strCommand);
LogPrint("ProcessMessage", "ProcessMessage=%s\n", strCommand);
vector <CInv> vInv;
vRecv >> vInv;
if (vInv.size() > MAX_INV_SZ) {
Expand Down

0 comments on commit cdecdf9

Please sign in to comment.