func (s *server) GetProposerForSlot(ctx context.Context, in *pb.GetProposerForSlotRequest) (*pb.GetProposerForSlotResponse, error) {
	state := s.chain.GetState()
	idx, err := state.GetBeaconProposerIndex(in.Slot, s.chain.GetConfig())
	if err != nil {
		return nil, err
	}
	return &pb.GetProposerForSlotResponse{
		Proposer: idx,
	}, nil
}
// GetProposerForSlot gets the proposer for a certain slot.
GetProposerForSlot gets the proposer for a certain slot.
// GetProposerForSlot gets the proposer for a certain slot .
func (s *server) GetProposerForSlot(ctx context.Context, in *pb.GetProposerForSlotRequest) (*pb.GetProposerForSlotResponse, error) {
	state := s.chain.GetState()
	idx, err := state.GetBeaconProposerIndex(in.Slot, s.chain.GetConfig())
	if err != nil {
		return nil, err
	}
	return &pb.GetProposerForSlotResponse{
		Proposer: idx,
	}, nil
}
func ( s * server ) GetProposerForSlot ( ctx context . Context , in * pb . GetProposerForSlotRequest ) ( * pb . GetProposerForSlotResponse , error ) { state := s . chain . GetState ( ) idx , err := state . GetBeaconProposerIndex ( in . Slot , s . chain . GetConfig ( ) ) if err != nil { return nil , err } return & pb . GetProposerForSlotResponse { Proposer : idx , } , nil }
GetProposerForSlot gets the proposer for a certain slot.
GetProposerForSlot gets the proposer for a certain slot .