@@ -993,3 +993,27 @@ proc installValidatorApiHandlers*(router: var RestRouter, node: BeaconNode) =
993993 )
994994 )
995995 return RestApiResponse .jsonResponse (response)
996+
997+ # https://github.com/ethereum/beacon-APIs/blob/f087fbf2764e657578a6c29bdf0261b36ee8db1e/apis/validator/beacon_committee_selections.yaml
998+ router.api (MethodPost , " /eth/v1/validator/beacon_committee_selections" ) do (
999+ contentBody: Option [ContentBody ]) -> RestApiResponse :
1000+ # "Consensus clients need not support this endpoint and may return a 501."
1001+ # https://github.com/ethereum/beacon-APIs/pull/224: "This endpoint need not
1002+ # be implemented on the CL side. Once a validator client is aware of it and
1003+ # able to use it when a feature flag is turned on, the intercepting
1004+ # middleware can handle and swallow the request. I suggest a CL either
1005+ # returns 501 Not Implemented [or] 400 Bad Request."
1006+ return RestApiResponse .jsonError (
1007+ Http501 , AggregationSelectionNotImplemented )
1008+
1009+ # https://github.com/ethereum/beacon-APIs/blob/f087fbf2764e657578a6c29bdf0261b36ee8db1e/apis/validator/sync_committee_selections.yaml
1010+ router.api (MethodPost , " /eth/v1/validator/sync_committee_selections" ) do (
1011+ contentBody: Option [ContentBody ]) -> RestApiResponse :
1012+ # "Consensus clients need not support this endpoint and may return a 501."
1013+ # https://github.com/ethereum/beacon-APIs/pull/224: "This endpoint need not
1014+ # be implemented on the CL side. Once a validator client is aware of it and
1015+ # able to use it when a feature flag is turned on, the intercepting
1016+ # middleware can handle and swallow the request. I suggest a CL either
1017+ # returns 501 Not Implemented [or] 400 Bad Request."
1018+ return RestApiResponse .jsonError (
1019+ Http501 , AggregationSelectionNotImplemented )
0 commit comments