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

consortium/v2: reject the vote with wrong target number #338

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Aug 9, 2023

Currently, a vote with wrong target number is not assembled into block as there
is a check in assembleFinalityVote. In this commit, we move that check to
VerifyVote to reject the vote earlier in vote pool, avoid the vote pool to be
DOSed.

@minh-bq minh-bq requested review from DNK90 and phuctd95 August 9, 2023 10:42
@minh-bq minh-bq changed the title vote/vote_pool: reject the current vote with wrong target number consortium/v2: reject the vote with wrong target number Aug 10, 2023
Currently, a vote with wrong target number is not assembled into block as there
is a check in assembleFinalityVote. In this commit, we move that check to
VerifyVote to reject the vote earlier in vote pool, avoid the vote pool to be
DOSed.
@minh-bq minh-bq merged commit 4d10507 into axieinfinity:feat/optimistic_fast_finality Aug 14, 2023
1 check passed
@minh-bq minh-bq deleted the fix/verify-target-number branch August 14, 2023 06:52
minh-bq added a commit to minh-bq/ronin that referenced this pull request Aug 29, 2023
…#338)

Currently, a vote with wrong target number is not assembled into block as there
is a check in assembleFinalityVote. In this commit, we move that check to
VerifyVote to reject the vote earlier in vote pool, avoid the vote pool to be
DOSed.
minh-bq added a commit to minh-bq/ronin that referenced this pull request Sep 7, 2023
…#338)

Currently, a vote with wrong target number is not assembled into block as there
is a check in assembleFinalityVote. In this commit, we move that check to
VerifyVote to reject the vote earlier in vote pool, avoid the vote pool to be
DOSed.
minh-bq added a commit that referenced this pull request Sep 7, 2023
Currently, a vote with wrong target number is not assembled into block as there
is a check in assembleFinalityVote. In this commit, we move that check to
VerifyVote to reject the vote earlier in vote pool, avoid the vote pool to be
DOSed.
andicrypt pushed a commit to andicrypt/ronin that referenced this pull request Nov 1, 2023
…#338)

Currently, a vote with wrong target number is not assembled into block as there
is a check in assembleFinalityVote. In this commit, we move that check to
VerifyVote to reject the vote earlier in vote pool, avoid the vote pool to be
DOSed.
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