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: recently signed check when slashing unavailable validator #267

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Apr 24, 2023

The first validator in snap.Recents is shifted out and allowed to seal the block already. However, when determining if we should slash the validator we mark that first validator as unable to seal block which is incorrect. This loosens the slash check rule. This commit fix this bug and create a separate helper function to check if the validator recently signed a block.

@minh-bq minh-bq requested a review from DNK90 April 24, 2023 07:40
The first validator in snap.Recents is shifted out and allowed to seal the block
already. However, when determining if we should slash the validator we mark that
first validator as unable to seal block which is incorrect. This loosens the
slash check rule. This commit fix this bug and create a separate helper function
to check if the validator recently signed a block.
@minh-bq minh-bq merged commit 519c6fd into axieinfinity:master Apr 26, 2023
@minh-bq minh-bq deleted the fix/recently-sign branch April 26, 2023 04:00
andicrypt pushed a commit to andicrypt/ronin that referenced this pull request Nov 1, 2023
…nfinity#267)

The first validator in snap.Recents is shifted out and allowed to seal the block
already. However, when determining if we should slash the validator we mark that
first validator as unable to seal block which is incorrect. This loosens the
slash check rule. This commit fix this bug and create a separate helper function
to check if the validator recently signed a block.
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