mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 17:18:08 -05:00
fix: apply correct reputation dmg on bad msg (#739)
This commit is contained in:
@@ -703,7 +703,7 @@ where
|
||||
this.swarm
|
||||
.state_mut()
|
||||
.peers_mut()
|
||||
.apply_reputation_change(&peer_id, ReputationChangeKind::FailedToConnect);
|
||||
.apply_reputation_change(&peer_id, ReputationChangeKind::BadMessage);
|
||||
this.metrics.invalid_messages_received.increment(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user