Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asserts that socket addresses set in new_with_external_ip are valid #32860

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

behzadnouri
Copy link
Contributor

Problem

new_with_external_ip silently ignores errors when setting socket addresses which makes it harder to catch bugs:
https://github.com/solana-labs/solana/blob/7beeb8310/gossip/src/cluster_info.rs#L3054-L3063

Summary of Changes

assert that socket addresses set in new_with_external_ip are valid.

new_with_external_ip silently ignores errors when setting socket
addresses which makes it harder to catch bugs:
https://github.com/solana-labs/solana/blob/7beeb8310/gossip/src/cluster_info.rs#L3054-L3063
@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #32860 (0023fa3) into master (7beeb83) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##           master   #32860   +/-   ##
=======================================
  Coverage    82.0%    82.0%           
=======================================
  Files         785      785           
  Lines      212149   212149           
=======================================
+ Hits       174016   174042   +26     
+ Misses      38133    38107   -26     

@behzadnouri behzadnouri requested a review from gregcusack August 16, 2023 20:20
@behzadnouri behzadnouri merged commit a9ecdc0 into solana-labs:master Aug 16, 2023
@behzadnouri behzadnouri deleted the assert-set-socket branch August 16, 2023 20:41
wen-coding pushed a commit to wen-coding/solana that referenced this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants