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

Error and exit on validator configs that contain only LOW validators #4528

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

bboston7
Copy link
Contributor

Closes #4526

This change raises an error when a node is a validator and all of the validators in its config (including itself) are marked LOW quality. This represents a misconfiguration because LOW quality validators cannot win leader election. If every validator is LOW quality, then there are no eligible nomination leaders and nomination will stall.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Closes stellar#4526

This change raises an error when a node is a validator and all of the
validators in its config (including itself) are marked `LOW` quality.
This represents a misconfiguration because `LOW` quality validators
cannot win leader election, and so if every validator is `LOW` quality,
then there are no eligible nomination leader.
Copy link
Contributor

@marta-lokhova marta-lokhova left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@marta-lokhova marta-lokhova added this pull request to the merge queue Nov 4, 2024
Merged via the queue into stellar:master with commit 1add5f9 Nov 4, 2024
13 checks passed
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.

Detect and error out on configurations that will cause leader election to fail
2 participants