-
Notifications
You must be signed in to change notification settings - Fork 5
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 resubmit checkpoint bug #547
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #547 +/- ##
==========================================
- Coverage 57.33% 57.32% -0.02%
==========================================
Files 309 309
Lines 31510 31509 -1
==========================================
- Hits 18067 18062 -5
- Misses 13443 13447 +4
|
How does this change fix the bug? I would expect that the change would be to check if the epoch is less than or equal to the current finalized epoch then we just ignore it the checkpoint. I don't follow what was changed. |
There was already a check present in the code. Instead of passing those filtered checkpoints, we were passing the initial checkpoint vector. Changing it to filtered checkpoint fixes the problem |
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.
Some minor comments.
…tion and formatting
95b5fac
to
f0ed257
Compare
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.
ACK 055793d
Description
Since anyone can post inscriptions, a malicious user can resend checkpoint inscription that has already been published and sequencer stops working. This PR fixes that particular bug
Type of Change
Notes to Reviewers
Checklist
This
Related Issues
STR-795