Don't Penalize Early bls_to_execution_change

This commit is contained in:
Mark Mackey 2023-01-13 12:53:25 -06:00
parent d9dd9b43ee
commit 05c1291d8a

View File

@ -1217,11 +1217,13 @@ impl<T: BeaconChainTypes> Worker<T> {
); );
self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Reject); self.propagate_validation_result(message_id, peer_id, MessageAcceptance::Reject);
// We penalize the peer slightly to prevent overuse of invalids. // We penalize the peer slightly to prevent overuse of invalids.
self.gossip_penalize_peer( if !matches!(e, BeaconChainError::BlsToExecutionChangeBadFork(_)) {
peer_id, self.gossip_penalize_peer(
PeerAction::HighToleranceError, peer_id,
"invalid_bls_to_execution_change", PeerAction::HighToleranceError,
); "invalid_bls_to_execution_change",
);
}
return; return;
} }
}; };