-
Notifications
You must be signed in to change notification settings - Fork 129
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
don't throw ErrProducerEquivocated if authored blocks have different parents #2709
don't throw ErrProducerEquivocated if authored blocks have different parents #2709
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## development #2709 +/- ##
===============================================
+ Coverage 63.14% 63.25% +0.11%
===============================================
Files 219 219
Lines 27563 27590 +27
===============================================
+ Hits 17404 17452 +48
+ Misses 8545 8525 -20
+ Partials 1614 1613 -1 |
Also would you be able to add a test case to cover such condition? |
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.
i think the whole equivocation check is wrong, afaik equivocation for block producers is defined as authoring two blocks in the same slot. we're allowed to author multiple blocks w the same number as long as they're in different slots, but the check is currently checking for multiple blocks w the same number, instead of multiple blocks in the same slot
Seems right. Will edit equivocation check accordingly. |
@kishansagathiya is this PR ready for review then? |
@timwu20 made it draft, have to re-do equivocation logic after noot's comments |
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
…Safe/gossamer into kishan/fix/err-equivocatory-blocks
Co-authored-by: Quentin McGaw <[email protected]>
…Safe/gossamer into kishan/fix/err-equivocatory-blocks
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
…Safe/gossamer into kishan/fix/err-equivocatory-blocks
🎉 This PR is included in version 0.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Changes
Waiting on some spec related clarification
Tests
go test -tags integration github.com/ChainSafe/gossamer
Issues
Fixes #2682
Primary Reviewer
@timwu20