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

config: ensure both ws and p2p net running the same mode in hybrid #6130

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

algorandskiy
Copy link
Contributor

Summary

Setting NetAddress and leaving P2PHybridNetAddress empty (and another way around) in hybrid mode might start a node with dual server-client mode that is not what operators expect.
Fixed by checking NetAddress and P2PHybridNetAddress for consistency if EnableP2PHybridMode is set.

Test Plan

Added new unit tests.

Copy link
Contributor

@gmalouf gmalouf left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.20%. Comparing base (3b3b5ce) to head (c958863).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6130      +/-   ##
==========================================
+ Coverage   54.28%   56.20%   +1.91%     
==========================================
  Files         494      494              
  Lines       69936    69943       +7     
==========================================
+ Hits        37968    39313    +1345     
+ Misses      29246    27957    -1289     
+ Partials     2722     2673      -49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@algorandskiy algorandskiy merged commit 90353e5 into algorand:master Sep 13, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants