-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add POST /eth/v2/beacon/pool/attester_slashings
#14480
Conversation
func (s *Server) attesterSlashing( | ||
w http.ResponseWriter, | ||
ctx context.Context, | ||
slot primitives.Slot, |
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.
Why pass the slot when we can get it from slashing
?
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.
Well I had to make the slashing type useable by both Electra and non electra and using the slot from this slashing would be:
slashing.FirstAttestation().GetData().Slot
It seemed simpler to just pass the slot
What type of PR is this?
Other
What does this PR do? Why is it needed?
Beacon API Electra alignment, add missing endpoint for POST
/eth/v2/beacon/pool/attester_slashings
.As described in the spec https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Beacon/submitPoolAttesterSlashingsV2
Which issues(s) does this PR fix?
Part of #14476
Other notes for review
Acknowledgements