mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
Remove Beacon API endpoints that were deprecated in Electra (#15962)
* Remove Beacon API endpoints that were deprecated in Electra * changelog <3 * build fix * remove more stuff * fix post-submit e2e and remove structs * list endpoints in the changelog --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
This commit is contained in:
@@ -136,7 +136,7 @@ var getRequests = map[string]endpoint{
|
||||
v2PathTemplate,
|
||||
withSanityCheckOnly()),
|
||||
"/beacon/pool/attester_slashings": newMetadata[structs.GetAttesterSlashingsResponse](
|
||||
v1PathTemplate,
|
||||
v2PathTemplate,
|
||||
withSanityCheckOnly()),
|
||||
"/beacon/pool/proposer_slashings": newMetadata[structs.GetProposerSlashingsResponse](
|
||||
v1PathTemplate,
|
||||
@@ -147,12 +147,6 @@ var getRequests = map[string]endpoint{
|
||||
"/beacon/pool/bls_to_execution_changes": newMetadata[structs.BLSToExecutionChangesPoolResponse](
|
||||
v1PathTemplate,
|
||||
withSanityCheckOnly()),
|
||||
"/builder/states/{param1}/expected_withdrawals": newMetadata[structs.ExpectedWithdrawalsResponse](
|
||||
v1PathTemplate,
|
||||
withStart(params.CapellaE2EForkEpoch),
|
||||
withParams(func(_ primitives.Epoch) []string {
|
||||
return []string{"head"}
|
||||
})),
|
||||
"/config/fork_schedule": newMetadata[structs.GetForkScheduleResponse](
|
||||
v1PathTemplate,
|
||||
withCustomEval(func(p interface{}, lh interface{}) error {
|
||||
@@ -208,7 +202,7 @@ var getRequests = map[string]endpoint{
|
||||
withCustomEval(func(p interface{}, _ interface{}) error {
|
||||
pResp, ok := p.(*structs.GetVersionResponse)
|
||||
if !ok {
|
||||
return fmt.Errorf(msgWrongJSON, &structs.ListAttestationsResponse{}, p)
|
||||
return fmt.Errorf(msgWrongJSON, &structs.GetVersionResponse{}, p)
|
||||
}
|
||||
if pResp.Data == nil {
|
||||
return errEmptyPrysmData
|
||||
|
||||
Reference in New Issue
Block a user