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 finalized height calculation when finalized is faster than best #936

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

shunjizhan
Copy link
Collaborator

@shunjizhan shunjizhan commented Feb 5, 2024

Change

if best height subscription is delayed, eth rpc might have delayed best state update, which is slower than chain finalized height. So we need to check and return the smaller of finalized height and the best height.

@shunjizhan shunjizhan marked this pull request as ready for review February 5, 2024 06:33
@shunjizhan shunjizhan merged commit 105ea68 into master Feb 5, 2024
11 checks passed
@shunjizhan shunjizhan deleted the fix-finalized-height-corner-case branch February 5, 2024 06:38
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