diff --git a/validator/rpc/gateway/gateway.go b/validator/rpc/gateway/gateway.go index fc1317889..5a2e529ba 100644 --- a/validator/rpc/gateway/gateway.go +++ b/validator/rpc/gateway/gateway.go @@ -59,6 +59,9 @@ func (g *Gateway) Start() { if err := pb.RegisterAuthHandlerFromEndpoint(ctx, gwmux, g.remoteAddr, opts); err != nil { log.Fatalf("Could not register API handler with grpc endpoint: %v", err) } + if err := pb.RegisterHealthHandlerFromEndpoint(ctx, gwmux, g.remoteAddr, opts); err != nil { + log.Fatalf("Could not register API handler with grpc endpoint: %v", err) + } g.mux.Handle("/", g.corsMiddleware(gwmux)) g.server = &http.Server{ Addr: g.gatewayAddr, diff --git a/validator/rpc/server.go b/validator/rpc/server.go index e88022399..55fa4d912 100644 --- a/validator/rpc/server.go +++ b/validator/rpc/server.go @@ -122,6 +122,7 @@ func (s *Server) Start() { // Register services available for the gRPC server. reflection.Register(s.grpcServer) pb.RegisterAuthServer(s.grpcServer, s) + pb.RegisterHealthServer(s.grpcServer, s) go func() { if s.listener != nil {