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: fix the incorrect snapshot lookup in GetFinalizedBlock #330

Conversation

minh-bq
Copy link
Collaborator

@minh-bq minh-bq commented Jul 31, 2023

Currently, to check if the justified block number - 1 is justfied, we look at the snapshot at justfied block number - 1. This is incorrect because at the snapshot N, the maximum justified block number is N - 1. So, we need to look at the snapshot at justified block number to check if the justified block number - 1 is justified.

Currently, to check if the justified block number - 1 is justfied, we look at
the snapshot at justfied block number - 1. This is incorrect because at the
snapshot N, the maximum justified block number is N - 1. So, we need to look at
the snapshot at justified block number to check if the justified block number -
1 is justified.
@minh-bq minh-bq merged commit 9bd4b20 into axieinfinity:feat/optimistic_fast_finality Jul 31, 2023
@minh-bq minh-bq deleted the fix/get-finalized-block branch July 31, 2023 10:07
minh-bq added a commit to minh-bq/ronin that referenced this pull request Aug 29, 2023
…axieinfinity#330)

Currently, to check if the justified block number - 1 is justfied, we look at
the snapshot at justfied block number - 1. This is incorrect because at the
snapshot N, the maximum justified block number is N - 1. So, we need to look at
the snapshot at justified block number to check if the justified block number -
1 is justified.
minh-bq added a commit to minh-bq/ronin that referenced this pull request Sep 7, 2023
…axieinfinity#330)

Currently, to check if the justified block number - 1 is justfied, we look at
the snapshot at justfied block number - 1. This is incorrect because at the
snapshot N, the maximum justified block number is N - 1. So, we need to look at
the snapshot at justified block number to check if the justified block number -
1 is justified.
minh-bq added a commit that referenced this pull request Sep 7, 2023
…#330)

Currently, to check if the justified block number - 1 is justfied, we look at
the snapshot at justfied block number - 1. This is incorrect because at the
snapshot N, the maximum justified block number is N - 1. So, we need to look at
the snapshot at justified block number to check if the justified block number -
1 is justified.
andicrypt pushed a commit to andicrypt/ronin that referenced this pull request Nov 1, 2023
…axieinfinity#330)

Currently, to check if the justified block number - 1 is justfied, we look at
the snapshot at justfied block number - 1. This is incorrect because at the
snapshot N, the maximum justified block number is N - 1. So, we need to look at
the snapshot at justified block number to check if the justified block number -
1 is justified.
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.

1 participant