-
Notifications
You must be signed in to change notification settings - Fork 886
Update proposer_slashings and attester_slashings amounts for electra. #7316
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
Update proposer_slashings and attester_slashings amounts for electra. #7316
Conversation
Good catch, thanks! The final merge window for v7.0.0 has passed (unless it's a serious bug), so this would most likely be included in v7.1.0. Does that work for you? v7.0.0 is here for reference: Planning to release early next week. |
Yes that is great, thanks a lot for the responsiveness.
I would like to also open a PR to get the |
test-suite / check-code (pull_request)
|
What is the timeline for v7.1.0? |
This has been already merged to v7.0.0 in:
There's no concrete timeline. It probably won't be before the mainnet fork. If you retarget your branch at |
Ah great missed it 👍
Yes then it would be great. I rely on rewards endpoints (attestations / sync_committee / block) for reporting purposes. This is my first contribution to the codebase so would love for a maintainer to confirm that's correct and there's no unintended side-effects: The two call sites: https://github.com/sigp/lighthouse/blob/39eb8145f89e11e3fd3a6c9c3d1031e8772ac491/beacon_node/http_api/src/block_rewards.rs/#L63-L73
That's reassuring as far as side effects goes 👍 |
Btw the CI failure on And was already fixed on |
This pull request has merge conflicts. Could you please resolve them @jybp? 🙏 |
c19d3d9
to
8e8417c
Compare
Added on top of |
I'll give this a proper review on Monday. It's 11pm friday in my tz so I'm logging off |
Hi @jyp, not sure if you have time to write a test for this issue? If not, let me know and I'll assign someone. Code change looks good, I just want to see it validated. |
@michaelsproul Sorry I don't have the bandwidth and am not familiar enough with the codebase to be able to write proper tests. Would appreciate if someone else could pick it up for integration in v7.0.0 🙏 |
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.
LGTM.
Ready for merge once the other v7.0.0 changes are pushed.
Issue Addressed
Did not find a specific issue beside #6821
Proposed Changes
Leverage
whistleblower_reward_quotient_for_state
to have accurate post-electraproposer_slashings
andattester_slashings
fields returned by/eth/v1/beacon/rewards/blocks/<id>
.Additional Info
While testing on Hoodi RPCs I noticed the amounts returned were wrong.
Example https://dora.hoodi.ethpandaops.io/slot/151980
/eth/v1/beacon/rewards/blocks/151980
returns"proposer_slashings":"4000000000"
(4ETH) instead of 0,5ETH.