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

LocalView redesigned, logging improvements, cleanup of consensus instances. #1970

Merged
merged 9 commits into from
Feb 20, 2023

Conversation

kape1395
Copy link
Collaborator

No description provided.

@kape1395 kape1395 changed the title Fix local view 2 Misc fixes around consensus: Feb 19, 2023
@kape1395 kape1395 changed the title Misc fixes around consensus: LocalView redesigned, logging improvements, cleanup of consensus instances. Feb 19, 2023
@kape1395 kape1395 marked this pull request as ready for review February 19, 2023 21:47
if len(entries) != 1 {
return nil // Alternatives exist.
}
if entries[0].rejected {
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

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.

packages/chain/cmtLog/var_localView.go Outdated Show resolved Hide resolved
Co-authored-by: muXxer <git@muxxer.de>
@kape1395 kape1395 merged commit ab02e0b into develop Feb 20, 2023
@kape1395 kape1395 deleted the fix-local-view-2 branch February 20, 2023 11:11
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