Lower penalty for past/future slot errors (#2510)
## Issue Addressed N/A ## Proposed Changes Reduce the penalties with past/future slot errors for sync committee messages.
This commit is contained in:
parent
4c4ebfbaa1
commit
d17350c0fa
@ -1232,9 +1232,9 @@ impl<T: BeaconChainTypes> Worker<T> {
|
|||||||
"type" => ?message_type,
|
"type" => ?message_type,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Peers that are slow or not to spec can spam us with these messages draining our
|
// Unlike attestations, we have a zero slot buffer in case of sync committee messages,
|
||||||
// bandwidth. We therefore penalize these peers when they do this.
|
// so we don't penalize heavily.
|
||||||
self.gossip_penalize_peer(peer_id, PeerAction::LowToleranceError);
|
self.gossip_penalize_peer(peer_id, PeerAction::HighToleranceError);
|
||||||
|
|
||||||
// Do not propagate these messages.
|
// Do not propagate these messages.
|
||||||
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Ignore);
|
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Ignore);
|
||||||
|
Loading…
Reference in New Issue
Block a user