Skip to content
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

Rewards API should return slashing penalty & whistleblower reward #437

Open
Buttaa opened this issue Mar 28, 2024 · 2 comments
Open

Rewards API should return slashing penalty & whistleblower reward #437

Buttaa opened this issue Mar 28, 2024 · 2 comments

Comments

@Buttaa
Copy link

Buttaa commented Mar 28, 2024

Description

  • The rewards API should return the slashing penalty for a slashed validator
  • The rewards API should return the whistleblower reward
@ensi321
Copy link
Contributor

ensi321 commented Apr 1, 2024

The rewards API should return the whistleblower reward

Are you talking about whistleblower reward for a) whistleblower himself or b) proposer including the slashing? If former, currently there is no reward given to whistleblower. whistleblower_index in the spec is always None and thus the reward goes to the proposer instead. If latter, slashing rewards for proposer can already be queried using block rewards endpoint.

The rewards API should return the slashing penalty for a slashed validator

Yea we can extend the block rewards endpoint to include slashing penalty info like which validator gets proposer/attester slashed and by how much and its initial penalty. For correlation penalty, it will be hard to calculate. I can draft something up if this is deemed useful.

@Buttaa
Copy link
Author

Buttaa commented Apr 1, 2024

hi @ensi321 ,

I was referring to the former -- thank you.

Yea we can extend the block rewards endpoint to include slashing penalty info like which validator gets proposer/attester slashed and by how much. I can draft something up

That'd be great!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants