chore: lower tmp ban duration for trusted or static peers (#12961)

This commit is contained in:
Matthias Seitz
2024-11-28 18:01:13 +01:00
committed by GitHub
parent 29d84e4cef
commit aea56135d5

View File

@ -375,7 +375,7 @@ impl PeersManager {
if peer.is_trusted() || peer.is_static() {
// For misbehaving trusted or static peers, we provide a bit more leeway when
// penalizing them.
ban_duration = self.backoff_durations.medium;
ban_duration = self.backoff_durations.low / 2;
}
}