Skip to content

Commit

Permalink
Accept POST method at EstimatedActivation
Browse files Browse the repository at this point in the history
  • Loading branch information
syjn99 committed Sep 24, 2024
1 parent a6e96d5 commit f4a305c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/rpc/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ func (s *Service) overEndpoints(stater lookup.Stater) []endpoint {
template: "/chronos/validator/estimated_activation/{validator_id}",
name: namespace + ".EstimatedActivation",
handler: server.EstimatedActivation,
methods: []string{http.MethodGet},
methods: []string{http.MethodGet, http.MethodPost},
},
{
template: "/chronos/states/epoch_reward/{epoch}",
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/endpoints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func Test_endpoints(t *testing.T) {
}

overRoutes := map[string][]string{
"/chronos/validator/estimated_activation/{validator_id}": {http.MethodGet},
"/chronos/validator/estimated_activation/{validator_id}": {http.MethodGet, http.MethodPost},
"/chronos/states/epoch_reward/{epoch}": {http.MethodGet},
"/over/v1/beacon/states/{state_id}/reserves": {http.MethodGet},
}
Expand Down

0 comments on commit f4a305c

Please sign in to comment.