From a55711d0758a8a26d1332c2d4357eac11ed5c7ba Mon Sep 17 00:00:00 2001
From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com>
Date: Wed, 29 Nov 2023 10:45:05 -0800
Subject: [PATCH] v1.17: Increase pull request clusterinfo probability
 (backport of #34231) (#34262)

Increase pull request clusterinfo probability (#34231)

* ensure new contactinfo propagated quicker when handling pull requests

* improve readability

(cherry picked from commit 0a2ff8525a0dfcfe4764dc091ac058907507d444)

Co-authored-by: Greg Cusack <greg.cusack@solana.com>
---
 gossip/src/cluster_info.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs
index 07fbbf93334e12..f2e99eed285162 100644
--- a/gossip/src/cluster_info.rs
+++ b/gossip/src/cluster_info.rs
@@ -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)