HomePhabricator

net: Log to net debug in MaybeDiscourageAndDisconnect except for noban and…

Description

net: Log to net debug in MaybeDiscourageAndDisconnect except for noban and manual peers

Summary:
The goal is to avoid local peers (e.g. untrusted peers on the local network or inbound onion peers via a local onion proxy) filling the debug log (and thus the disk).

This is a backport of core#20845

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13302

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Feb 16 2021, 12:29
PiRKCommitted on Mar 13 2023, 12:39
PiRKPushed on Mar 13 2023, 12:39
Reviewer
Restricted Project
Differential Revision
D13302: net: Log to net debug in MaybeDiscourageAndDisconnect except for noban and manual peers
Parents
rABC59c0161152a4: [net processing] Remove CNodeState ctor body
Branches
Unknown
Tags
Unknown