Skip to content

Commit

Permalink
Decrease the mesh message deliveries weight
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning committed Jul 8, 2021
1 parent 10938a4 commit deaaf08
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ impl<TSpec: EthSpec> PeerScoreSettings<TSpec> {
t_params.mesh_message_deliveries_window =
Duration::from_secs(MESH_MESSAGE_DELIVERIES_WINDOW);
t_params.mesh_failure_penalty_decay = t_params.mesh_message_deliveries_decay;
t_params.mesh_message_deliveries_weight = -self.max_positive_score
/ (t_params.topic_weight * t_params.mesh_message_deliveries_threshold.powi(2));
t_params.mesh_message_deliveries_weight = -t_params.topic_weight;
t_params.mesh_failure_penalty_weight = t_params.mesh_message_deliveries_weight;
if decay_slots >= current_slot.as_u64() {
t_params.mesh_message_deliveries_threshold = 0.0;
Expand Down

0 comments on commit deaaf08

Please sign in to comment.