Move RPC Protos Into V2 Namespace (#9254)

* moved rpc protos

* gazelle

* change pb

* validator health

* edit name

* naming
This commit is contained in:
Raul Jordan
2021-07-22 16:00:28 -05:00
committed by GitHub
parent b7919b3115
commit 5864795ca5
56 changed files with 4448 additions and 4541 deletions

View File

@@ -11,7 +11,6 @@ import (
recovery "github.com/grpc-ecosystem/go-grpc-middleware/recovery"
grpc_opentracing "github.com/grpc-ecosystem/go-grpc-middleware/tracing/opentracing"
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
healthpb "github.com/prysmaticlabs/prysm/proto/beacon/rpc/v1"
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
pb "github.com/prysmaticlabs/prysm/proto/prysm/v2"
"github.com/prysmaticlabs/prysm/shared/event"
@@ -63,7 +62,7 @@ type Server struct {
beaconChainClient ethpb.BeaconChainClient
beaconNodeClient ethpb.NodeClient
beaconNodeValidatorClient ethpb.BeaconNodeValidatorClient
beaconNodeHealthClient healthpb.HealthClient
beaconNodeHealthClient pb.HealthClient
valDB db.Database
ctx context.Context
cancel context.CancelFunc
@@ -185,7 +184,7 @@ func (s *Server) Start() {
reflection.Register(s.grpcServer)
pb.RegisterAuthServer(s.grpcServer, s)
pb.RegisterWalletServer(s.grpcServer, s)
pb.RegisterHealthServer(s.grpcServer, s)
pb.RegisterValidatorHealthServer(s.grpcServer, s)
pb.RegisterBeaconServer(s.grpcServer, s)
pb.RegisterAccountsServer(s.grpcServer, s)
pb.RegisterSlashingProtectionServer(s.grpcServer, s)