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

Fix ipv6 leader election #107

Merged

Conversation

chillyvee
Copy link
Contributor

@chillyvee chillyvee commented Sep 29, 2022

Description

Fixes #91

Checklist

  • I have made sure the upstream branch for this PR is correct
  • I have made sure this PR is ready to merge
  • I have made sure that I have assigned reviewers related to this project

Changes

Updated string parsing to wrap IPv6 Addresses in [] to distinguish from port

Testing

Set up horcrux 2 of 3 signing cluster using IPv6 Peer Addresses

horcrux elect 1
horcrux elect 2
horcrux elect 3

Comments

Purposely did not import a big external dependency to validate IPv4/6 addresses with the assumption that a running cluster likely already has a well formatted and valid configuration file.

Copy link
Member

@agouin agouin left a comment

Choose a reason for hiding this comment

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

Thank you for this! This also points out that we lack test coverage on leader election, so I will open up a follow-up PR shortly after merging

@agouin agouin merged commit b384dfe into strangelove-ventures:main Oct 15, 2022
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.

IPV6 not working for elect command
2 participants