Skip to content

Commit a57ebdc

Browse files
Adjusted scoring
1 parent 0306d01 commit a57ebdc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

gossipsub/src/behaviour.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2134,11 +2134,12 @@ where
21342134

21352135
/// Applies penalties to peers that did not respond to our IWANT requests.
21362136
fn apply_iwant_penalties(&mut self) {
2137-
if let Some((peer_score, ..)) = &mut self.peer_score {
2138-
for (peer, count) in self.gossip_promises.get_broken_promises() {
2137+
if let Some((_peer_score, ..)) = &mut self.peer_score {
2138+
for (peer, _count) in self.gossip_promises.get_broken_promises() {
21392139
// We do not apply penalties to nodes that have disconnected.
21402140
if self.connected_peers.contains_key(&peer) {
2141-
peer_score.add_penalty(&peer, count);
2141+
// temporary disabled due to issues under heavy load
2142+
// peer_score.add_penalty(&peer, count);
21422143
if let Some(metrics) = self.metrics.as_mut() {
21432144
metrics.register_score_penalty(Penalty::BrokenPromise);
21442145
}

0 commit comments

Comments
 (0)