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);
// We penalize the peer slightly to prevent overuse of invalids.
if !matches!(e, BeaconChainError::BlsToExecutionChangeBadFork(_)) {
self.gossip_penalize_peer(
peer_id,
PeerAction::HighToleranceError,
"invalid_bls_to_execution_change",
);
}
return;
}
};