mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 4b6ca4a35a into merged_master (Bitcoin PR #20845)
This commit is contained in:
commit
38ff33f7e5
1 changed files with 2 additions and 1 deletions
|
|
@ -4052,7 +4052,8 @@ bool PeerManagerImpl::MaybeDiscourageAndDisconnect(CNode& pnode, Peer& peer)
|
|||
if (pnode.addr.IsLocal()) {
|
||||
// We disconnect local peers for bad behavior but don't discourage (since that would discourage
|
||||
// all peers on the same local address)
|
||||
LogPrintf("Warning: disconnecting but not discouraging local peer %d!\n", peer.m_id);
|
||||
LogPrint(BCLog::NET, "Warning: disconnecting but not discouraging %s peer %d!\n",
|
||||
pnode.m_inbound_onion ? "inbound onion" : "local", peer.m_id);
|
||||
pnode.fDisconnect = true;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue