ethereum / beacon-APIs

Collection of RESTful APIs provided by Ethereum Beacon nodes
https://ethereum.github.io/beacon-APIs/
Creative Commons Zero v1.0 Universal
328 stars 167 forks source link

Rewards API should return slashing penalty & whistleblower reward #437

Open Buttaa opened 5 months ago

Buttaa commented 5 months ago

Description

ensi321 commented 5 months ago

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 commented 5 months ago

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!!