fn ar_count(height: u64, diff_data: &[HeaderInfo]) -> u64 {
	let mut to_skip = 1;
	if global::is_testnet() && height < T4_CUCKAROO_HARDFORK {
		// Maintain behavior of testnet4 pre-HF.
		to_skip = 0;
	}
	100 * diff_data
		.iter()
		.skip(to_skip)
		.filter(|n| n.is_secondary)
		.count() as u64
}
/// Count the number of "secondary" (AR) blocks in the provided window of blocks.
/// Note: we skip the first one, but testnet4 was incorrectly including it before
/// the hardfork.
Count the number of "secondary" (AR) blocks in the provided window of blocks.
Note: we skip the first one, but testnet4 was incorrectly including it before
the hardfork.
Count the number of " secondary " ( AR ) blocks in the provided window of blocks . Note : we skip the first one but testnet4 was incorrectly including it before the hardfork .
fn ar_count(height: u64, diff_data: &[HeaderInfo]) -> u64 {
	let mut to_skip = 1;
	if global::is_testnet() && height < T4_CUCKAROO_HARDFORK {
		// Maintain behavior of testnet4 pre-HF.
		to_skip = 0;
	}
	100 * diff_data
		.iter()
		.skip(to_skip)
		.filter(|n| n.is_secondary)
		.count() as u64
}
fn ar_count ( height : u64 , diff_data : & [ HeaderInfo ] ) -> u64 { let mut to_skip = 1 ; if global :: is_testnet ( ) && height < T4_CUCKAROO_HARDFORK { // Maintain behavior of testnet4 pre-HF. to_skip = 0 ; } 100 * diff_data . iter ( ) . skip ( to_skip ) . filter ( | n | n . is_secondary ) . count ( ) as u64 }
Count the number of "secondary" (AR) blocks in the provided window of blocks.
Count the number of " secondary " ( AR ) blocks in the provided window of blocks .
height
u64
diff_data
&[HeaderInfo]