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: checkpointing/query epoch status count bug #122

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

gitferry
Copy link
Contributor

@gitferry gitferry commented Sep 8, 2022

As reported by @toliujiayi, an error code is returned by the RecentEpochStatusCount due to the non-existence of the checkpoint for the current epoch. The counting should start from the previous epoch. This PR fixed this issue.

This PR also fixed another issue in tests, where the generated validator set should be ordered. Otherwise, the binary search of finding the validator index will not succeed.

Copy link
Contributor

@aakoshh aakoshh left a comment

Choose a reason for hiding this comment

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

Great nothing as effective at finding bugs as clicking through a UI! Nice one!

@gitferry gitferry merged commit 219aecd into main Sep 9, 2022
@gitferry gitferry deleted the fix/epoch-status-counting-bug branch September 9, 2022 06:29
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