Skip to content

Commit

Permalink
uses new contact-info in pull-requests
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed Apr 18, 2024
1 parent 4f2bfb3 commit d03af0b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1566,10 +1566,14 @@ impl ClusterInfo {
self.stats.new_pull_requests_count.add_relaxed(num_requests);
// TODO: Use new ContactInfo once the cluster has upgraded to:
// https://github.com/anza-xyz/agave/pull/803
let self_info = LegacyContactInfo::try_from(&self.my_contact_info())
.map(CrdsData::LegacyContactInfo)
.expect("Operator must spin up node with valid contact-info");
let self_info = CrdsValue::new_signed(self_info, &self.keypair());
// let self_info = LegacyContactInfo::try_from(&self.my_contact_info())
// .map(CrdsData::LegacyContactInfo)
// .expect("Operator must spin up node with valid contact-info");
// let self_info = CrdsValue::new_signed(self_info, &self.keypair());
let self_info = CrdsValue::new_signed(
CrdsData::ContactInfo(self.my_contact_info()),
&self.keypair(),
);
let pulls = pulls
.into_iter()
.filter_map(|(peer, filters)| Some((peer.gossip().ok()?, filters)))
Expand Down

0 comments on commit d03af0b

Please sign in to comment.