-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 Epoch Checks #7364
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just one comment on test
// TODO(#5827) Verify the finalized block with the epoch in the | ||
// status message | ||
return nil | ||
if helpers.SlotToEpoch(blk.Block.Slot) == msg.FinalizedEpoch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests for these new chunk of code?
Codecov Report
@@ Coverage Diff @@
## master #7364 +/- ##
==========================================
- Coverage 60.20% 60.08% -0.13%
==========================================
Files 418 418
Lines 30067 30018 -49
==========================================
- Hits 18101 18035 -66
- Misses 9017 9036 +19
+ Partials 2949 2947 -2 |
if err != nil { | ||
traceutil.AnnotateError(span, err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if err != nil { | |
traceutil.AnnotateError(span, err) | |
} | |
traceutil.AnnotateError(span, err) |
AnnotateError is a no-op if err is nil, no need to check here
… into addBetterStatusChecks
What type of PR is this?
What does this PR do? Why is it needed?
and finalized blocks and its relevant child blocks and verifying that their respective slots match up.
Which issues(s) does this PR fix?
Fixes #5827
Other notes for review