Skip to content

Commit

Permalink
Lower penalty for past/future slot errors (sigp#2510)
Browse files Browse the repository at this point in the history
## Issue Addressed

N/A

## Proposed Changes

Reduce the penalties with past/future slot errors for sync committee messages.
  • Loading branch information
pawanjay176 committed Aug 27, 2021
1 parent 7006a14 commit f0bee46
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1227,9 +1227,9 @@ impl<T: BeaconChainTypes> Worker<T> {
"type" => ?message_type,
);

// Peers that are slow or not to spec can spam us with these messages draining our
// bandwidth. We therefore penalize these peers when they do this.
self.gossip_penalize_peer(peer_id, PeerAction::LowToleranceError);
// Unlike attestations, we have a zero slot buffer in case of sync committee messages,
// so we don't penalize heavily.
self.gossip_penalize_peer(peer_id, PeerAction::HighToleranceError);

// Do not propagate these messages.
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Ignore);
Expand Down

0 comments on commit f0bee46

Please sign in to comment.