what helps leg pain while sleeping

They hurt when they are relaxed