Skip to content
Unverified Commit 8b17f0f4 authored by Alexandru Vasile's avatar Alexandru Vasile Committed by GitHub
Browse files

peerstore: Clarify peer report warnings (#5407)



This PR aims to make the logging from the peer store a bit more clear.

In the past, we aggressively produced warning logs from the peer store
component, even in cases where the reputation change was not malicious.
This has led to an extensive number of logs, as well to node operator
confusion.

In this PR, we produce a warning message if:
- The peer crosses the banned threshold for the first time. This is the
actual reason of a ban
- The peer misbehaves again while being banned. This may happen during a
batch peer report

cc @paritytech/networking 

Part of: https://github.com/paritytech/polkadot-sdk/issues/5379.

---------

Signed-off-by: default avatarAlexandru Vasile <[email protected]>
Co-authored-by: default avatarDmitry Markin <[email protected]>
parent 646e4f7e
Pipeline #492037 waiting for manual action with stages
in 1 hour, 15 minutes, and 25 seconds