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 get highest executed and finalized height #5903

Merged
merged 2 commits into from May 14, 2024

Conversation

zhangchiqing
Copy link
Member

@zhangchiqing zhangchiqing commented May 13, 2024

This PR fixes an issue in GetHighestFinalizedAndExecution function.

@codecov-commenter
Copy link

codecov-commenter commented May 13, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 55.59%. Comparing base (5e4bd4d) to head (6a5f20a).

Files Patch % Lines
engine/execution/state/state.go 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5903      +/-   ##
==========================================
- Coverage   55.61%   55.59%   -0.02%     
==========================================
  Files        1127     1127              
  Lines       88838    88833       -5     
==========================================
- Hits        49408    49389      -19     
- Misses      34721    34737      +16     
+ Partials     4709     4707       -2     
Flag Coverage Δ
unittests 55.59% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

highest = finalizedHeight
}

if finalizedID != executedID {
Copy link
Member Author

Choose a reason for hiding this comment

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

This check is wrong in the case where finalizedHeight < executedHeight.

@zhangchiqing zhangchiqing added this pull request to the merge queue May 14, 2024
@zhangchiqing zhangchiqing removed this pull request from the merge queue due to a manual request May 14, 2024
@zhangchiqing zhangchiqing force-pushed the leo/fix-get-highest-executed-and-finalized branch from f0df93e to 6a5f20a Compare May 14, 2024 17:24
@zhangchiqing zhangchiqing added this pull request to the merge queue May 14, 2024
Merged via the queue into master with commit 14fd503 May 14, 2024
55 checks passed
@zhangchiqing zhangchiqing deleted the leo/fix-get-highest-executed-and-finalized branch May 14, 2024 18:05
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.

None yet

4 participants