func (s *server) GetValidatorInformation(ctx context.Context, in *pb.GetValidatorRequest) (*pb.Validator, error) {
	state := s.chain.GetState()

	if uint32(len(state.ValidatorRegistry)) <= in.ID {
		return nil, fmt.Errorf("could not find validator with ID %d", in.ID)
	}

	validator := state.ValidatorRegistry[in.ID]

	return validator.ToProto(), nil
}
// GetValidatorInformation gets information about a validator.
GetValidatorInformation gets information about a validator.
// GetValidatorInformation gets information about a validator .
func (s *server) GetValidatorInformation(ctx context.Context, in *pb.GetValidatorRequest) (*pb.Validator, error) {
	state := s.chain.GetState()
	if uint32(len(state.ValidatorRegistry)) <= in.ID {
		return nil, fmt.Errorf("could not find validator with ID %d", in.ID)
	}
	validator := state.ValidatorRegistry[in.ID]
	return validator.ToProto(), nil
}
func ( s * server ) GetValidatorInformation ( ctx context . Context , in * pb . GetValidatorRequest ) ( * pb . Validator , error ) { state := s . chain . GetState ( ) if uint32 ( len ( state . ValidatorRegistry ) ) <= in . ID { return nil , fmt . Errorf ( " " , in . ID ) } validator := state . ValidatorRegistry [ in . ID ] return validator . ToProto ( ) , nil }
GetValidatorInformation gets information about a validator.
GetValidatorInformation gets information about a validator .