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: incorrect finalization when head blocks are cached and polled #1265

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

TarikGul
Copy link
Member

closes: #1264

For more detail please refer the issue above:

Summary: Our caching mechanism was storing unfinalized block heads and once they were finalized returning the older value which is incorrect, so in this PR we are ensuring that if the cached block is not finalized to re-query the block. NOTE: there is room for optimization but for now this is a solution to get rid of the bug.

@TarikGul TarikGul requested a review from a team as a code owner April 18, 2023 03:37
Copy link
Collaborator

@marshacb marshacb left a comment

Choose a reason for hiding this comment

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

lgtm!

@TarikGul TarikGul merged commit d498206 into master Apr 19, 2023
@TarikGul TarikGul deleted the tarik-fix-finalization branch April 19, 2023 02:40
@TarikGul TarikGul mentioned this pull request Apr 19, 2023
This pull request was closed.
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.

/blocks/head returns an unfinalized block when requested with finalized=true
4 participants