prysmaticlabs / prysm

Using a deprecated function, variable, constant or field GO-W1009
Anti-pattern
Major
22 days ago2 years old
beaconClient.GetChainHead is deprecated: Do not use.
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	}
beaconClient.GetChainHead is deprecated: Do not use.
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	}
client.GetChainHead is deprecated: Do not use.
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	}
beaconClient.GetChainHead is deprecated: Do not use.
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	}
client.GetChainHead is deprecated: Do not use.
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	}