pub fn validate_consensus_heights(heights: &[u32]) -> Result<()>
Validates a vector of heights as consensus heights.