-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
feat: emit slashing events #6391
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
a9df592
to
b22e7ad
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## unstable #6391 +/- ##
=========================================
Coverage 60.14% 60.14%
=========================================
Files 407 407
Lines 46512 46526 +14
Branches 1551 1551
=========================================
+ Hits 27975 27985 +10
- Misses 18505 18509 +4
Partials 32 32 |
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.
this lgtm, ready for review?
@@ -138,6 +138,70 @@ function runTests({useWorker}: {useWorker: boolean}): void { | |||
); | |||
}); | |||
|
|||
it("Publish and receive an attesterSlashing", async function () { |
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.
The amount of copy pasted code is quite high in this file, maybe something that could be improved in this PR (or later one) to make it easier to add new events in the future
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 would suggest to do that in a different PR for extra clarity.
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
🎉 This PR is included in v1.16.0 🎉 |
Motivation
Add
proposer_slashing
andattester_slashing
to SSEDescription
Make sure new events introduced by ethereum/beacon-APIs#376 are now emitted and made available via SSE.
Closes #6209