mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-07 07:01:26 +02:00
p2p: Put disconnecting logs into BCLog::NET category
This commit is contained in:
@@ -3828,7 +3828,7 @@ bool PeerLogicValidation::MaybeDiscourageAndDisconnect(CNode& pnode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Normal case: Disconnect the peer and discourage all nodes sharing the address
|
// Normal case: Disconnect the peer and discourage all nodes sharing the address
|
||||||
LogPrintf("Disconnecting and discouraging peer %d!\n", peer_id);
|
LogPrint(BCLog::NET, "Disconnecting and discouraging peer %d!\n", peer_id);
|
||||||
if (m_banman) m_banman->Discourage(pnode.addr);
|
if (m_banman) m_banman->Discourage(pnode.addr);
|
||||||
m_connman.DisconnectNode(pnode.addr);
|
m_connman.DisconnectNode(pnode.addr);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user