From 05c1291d8a8118df5cf1d7bedb385efa53177339 Mon Sep 17 00:00:00 2001 From: Mark Mackey Date: Fri, 13 Jan 2023 12:53:25 -0600 Subject: [PATCH] Don't Penalize Early `bls_to_execution_change` --- .../src/beacon_processor/worker/gossip_methods.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/beacon_node/network/src/beacon_processor/worker/gossip_methods.rs b/beacon_node/network/src/beacon_processor/worker/gossip_methods.rs index 589d7e9b4..08f659e58 100644 --- a/beacon_node/network/src/beacon_processor/worker/gossip_methods.rs +++ b/beacon_node/network/src/beacon_processor/worker/gossip_methods.rs @@ -1217,11 +1217,13 @@ impl Worker { ); self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Reject); // We penalize the peer slightly to prevent overuse of invalids. - self.gossip_penalize_peer( - peer_id, - PeerAction::HighToleranceError, - "invalid_bls_to_execution_change", - ); + if !matches!(e, BeaconChainError::BlsToExecutionChangeBadFork(_)) { + self.gossip_penalize_peer( + peer_id, + PeerAction::HighToleranceError, + "invalid_bls_to_execution_change", + ); + } return; } };