-
Notifications
You must be signed in to change notification settings - Fork 147
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
LocalView redesigned, logging improvements, cleanup of consensus instances. #1970
Conversation
if len(entries) != 1 { | ||
return nil // Alternatives exist. | ||
} | ||
if entries[0].rejected { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to loop over all entries here just to be safe that none of them is rejected? Or is this already clear if we only check the first entry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check above tests if there is only a single element in the entries list. So it is enough here to check that single element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahaha true :D sorry my bad.
Co-authored-by: muXxer <git@muxxer.de>
No description provided.