Skip to content

Commit e6111b2

Browse files
committed
Make peer id logging consistent ("peer=%d" instead of "peer %d")
1 parent c1ae4fc commit e6111b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/net_processing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ void EraseOrphansFor(NodeId peer)
647647
nErased += EraseOrphanTx(maybeErase->second.tx->GetHash());
648648
}
649649
}
650-
if (nErased > 0) LogPrint("mempool", "Erased %d orphan tx from peer %d\n", nErased, peer);
650+
if (nErased > 0) LogPrint("mempool", "Erased %d orphan tx from peer=%d\n", nErased, peer);
651651
}
652652

653653

@@ -789,7 +789,7 @@ void PeerLogicValidation::NewPoWValidBlock(const CBlockIndex *pindex, const std:
789789
if (state.fPreferHeaderAndIDs && (!fWitnessEnabled || state.fWantsCmpctWitness) &&
790790
!PeerHasHeader(&state, pindex) && PeerHasHeader(&state, pindex->pprev)) {
791791

792-
LogPrint("net", "%s sending header-and-ids %s to peer %d\n", "PeerLogicValidation::NewPoWValidBlock",
792+
LogPrint("net", "%s sending header-and-ids %s to peer=%d\n", "PeerLogicValidation::NewPoWValidBlock",
793793
hashBlock.ToString(), pnode->id);
794794
connman->PushMessage(pnode, msgMaker.Make(NetMsgType::CMPCTBLOCK, *pcmpctblock));
795795
state.pindexBestHeaderSent = pindex;
@@ -2889,7 +2889,7 @@ bool SendMessages(CNode* pto, CConnman& connman, std::atomic<bool>& interruptMsg
28892889
if (vHeaders.size() == 1 && state.fPreferHeaderAndIDs) {
28902890
// We only send up to 1 block as header-and-ids, as otherwise
28912891
// probably means we're doing an initial-ish-sync or they're slow
2892-
LogPrint("net", "%s sending header-and-ids %s to peer %d\n", __func__,
2892+
LogPrint("net", "%s sending header-and-ids %s to peer=%d\n", __func__,
28932893
vHeaders.front().GetHash().ToString(), pto->id);
28942894

28952895
int nSendFlags = state.fWantsCmpctWitness ? 0 : SERIALIZE_TRANSACTION_NO_WITNESS;

0 commit comments

Comments
 (0)