640 debugClient := ethpb.NewDebugClient(conn)
641
642 ctx := context.Background()
643 chainHead, err := beaconClient.GetChainHead(ctx, &emptypb.Empty{})644 if err != nil {
645 return errors.Wrap(err, "could not get chain head")
646 }
556 debugClient := ethpb.NewDebugClient(conn)
557
558 ctx := context.Background()
559 chainHead, err := beaconClient.GetChainHead(ctx, &emptypb.Empty{})560 if err != nil {
561 return errors.Wrap(err, "could not get chain head")
562 }
458func validatorsVoteWithTheMajority(ec *e2etypes.EvaluationContext, conns ...*grpc.ClientConn) error {
459 conn := conns[0]
460 client := ethpb.NewBeaconChainClient(conn)
461 chainHead, err := client.GetChainHead(context.Background(), &emptypb.Empty{})462 if err != nil {
463 return errors.Wrap(err, "failed to get chain head")
464 }
347 debugClient := ethpb.NewDebugClient(conn)
348
349 ctx := context.Background()
350 chainHead, err := beaconClient.GetChainHead(ctx, &emptypb.Empty{})351 if err != nil {
352 return errors.Wrap(err, "could not get chain head")
353 }
292 conn := conns[0]
293 client := ethpb.NewBeaconChainClient(conn)
294
295 chainHead, err := client.GetChainHead(context.Background(), &emptypb.Empty{})296 if err != nil {
297 return errors.Wrap(err, "failed to get chain head")
298 }
Sometimes a function, variable, constant, field, or whole package becomes redundant or unnecessary but must be kept for compatibility with existing programs. These should not be used except for compatibility with legacy systems.