Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
v1.17: Increase pull request clusterinfo probability (backport of #34231
Browse files Browse the repository at this point in the history
) (#34262)

Increase pull request clusterinfo probability (#34231)

* ensure new contactinfo propagated quicker when handling pull requests

* improve readability

(cherry picked from commit 0a2ff85)

Co-authored-by: Greg Cusack <greg.cusack@solana.com>
  • Loading branch information
mergify[bot] and Greg Cusack authored Nov 29, 2023
1 parent d353453 commit a55711d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,7 @@ impl ClusterInfo {
score
};
let score = match response.data {
CrdsData::LegacyContactInfo(_) => 2 * score,
CrdsData::LegacyContactInfo(_) | CrdsData::ContactInfo(_) => 2 * score,
_ => score,
};
((addr, response), score)
Expand Down

0 comments on commit a55711d

Please sign in to comment.