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

removes repair socket from gossip ContactInfo #32831

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

behzadnouri
Copy link
Contributor

Problem

Repair responses are sent back to the address the repair request came from and there is no need to gossip repair socket address. https://github.com/solana-labs/solana/blob/9212ac347/core/src/repair/serve_repair.rs#L519

Summary of Changes

Removed repair socket from gossip ContactInfo.

@behzadnouri behzadnouri force-pushed the rm-contact-info-repair branch from bddaedc to 3fd1544 Compare August 14, 2023 16:31
@behzadnouri behzadnouri requested a review from gregcusack August 14, 2023 16:33
@behzadnouri behzadnouri force-pushed the rm-contact-info-repair branch from 3fd1544 to ade1fd1 Compare August 14, 2023 17:36
Repair responses are sent back to the address the repair request came
from and there is no need to gossip repair socket address.
https://github.com/solana-labs/solana/blob/9212ac347/core/src/repair/serve_repair.rs#L519
@behzadnouri behzadnouri force-pushed the rm-contact-info-repair branch from ade1fd1 to 0a1250e Compare August 14, 2023 18:23
@@ -27,8 +27,7 @@ pub struct LegacyContactInfo {
tvu: SocketAddr,
/// TVU over QUIC protocol.
tvu_quic: SocketAddr,
/// address to send repair responses to
repair: SocketAddr,
unused: SocketAddr,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason why this is needed instead of getting fully removed? legacy purposes? -> legacy validators contacting this validator?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It won't be backward compatible to remove it because we are using bincode for serialization which does not including any tags or schema in the serialized payload.
So if we remove it new code and old code will deserialize the same bytes differently.

@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #32831 (0a1250e) into master (9212ac3) will increase coverage by 0.0%.
Report is 2 commits behind head on master.
The diff coverage is 72.9%.

@@           Coverage Diff           @@
##           master   #32831   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         785      785           
  Lines      211937   211927   -10     
=======================================
- Hits       173833   173829    -4     
+ Misses      38104    38098    -6     

Copy link
Contributor

@gregcusack gregcusack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@behzadnouri behzadnouri merged commit 52616cf into solana-labs:master Aug 14, 2023
@behzadnouri behzadnouri deleted the rm-contact-info-repair branch August 14, 2023 20:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants