Add GET /eth/v2/beacon/pool/attester_slashings (#14479)

* add endpoint

* changelog

* correct resp with both attestationSlashings types

* fix and comment

* fix test

* fix version check

* review + fixes

* fix

* James' review

* Review items

* Radek' review

* Radek' review
This commit is contained in:
Sammy Rosso
2024-10-16 11:23:23 +02:00
committed by GitHub
parent 5a5193c59d
commit 2afa63b442
6 changed files with 229 additions and 29 deletions

View File

@@ -176,7 +176,8 @@ type BLSToExecutionChangesPoolResponse struct {
}
type GetAttesterSlashingsResponse struct {
Data []*AttesterSlashing `json:"data"`
Version string `json:"version,omitempty"`
Data json.RawMessage `json:"data"` // Accepts both `[]*AttesterSlashing` and `[]*AttesterSlashingElectra` types
}
type GetProposerSlashingsResponse struct {