Compare commits

...

3 Commits

Author SHA1 Message Date
james-prysm
a840274358 Merge branch 'develop' into validator-route-fix 2023-10-19 10:37:30 -05:00
james-prysm
ca06a75888 Merge branch 'develop' into validator-route-fix 2023-10-18 16:19:30 -05:00
james-prysm
b842bd63c0 route fix 2023-10-18 15:30:48 -05:00

View File

@@ -186,6 +186,9 @@ func (s *Server) Start() {
ethpbservice.RegisterKeyManagementServer(s.grpcServer, s)
validatorpb.RegisterSlashingProtectionServer(s.grpcServer, s)
s.router.HandleFunc("/eth/v1/validator/{pubkey}/voluntary_exit", s.SetVoluntaryExit).Methods(http.MethodPost)
// router definitions must go before the Serve function to be applied
go func() {
if s.listener != nil {
if err := s.grpcServer.Serve(s.listener); err != nil {
@@ -206,8 +209,6 @@ func (s *Server) Start() {
logValidatorWebAuth(validatorWebAddr, token, authTokenPath)
go s.refreshAuthTokenFromFileChanges(s.ctx, authTokenPath)
}
s.router.HandleFunc("/eth/v1/validator/{pubkey}/voluntary_exit", s.SetVoluntaryExit).Methods(http.MethodPost)
}
// Stop the gRPC server.