pub fn check_consistency(&self, validators: &[AuthorityId], reports: &[u32]) -> bool {
		reports.iter().cloned().all(|r| {
			let v = match validators.get(r as usize) {
				Some(v) => v,
				None => return false,
			};

			// we must think all validators reported externally are offline.
			let thinks_online = self.is_online(v);
			!thinks_online
		})
	}
/// Whether reports on a validator set are consistent with our view of things.
Whether reports on a validator set are consistent with our view of things.
Whether reports on a validator set are consistent with our view of things .
pub fn check_consistency(&self, validators: &[AuthorityId], reports: &[u32]) -> bool {
		reports.iter().cloned().all(|r| {
			let v = match validators.get(r as usize) {
				Some(v) => v,
				None => return false,
			};
			// we must think all validators reported externally are offline.
			let thinks_online = self.is_online(v);
			!thinks_online
		})
	}
pub fn check_consistency ( & self , validators : & [ AuthorityId ] , reports : & [ u32 ] ) -> bool { reports . iter ( ) . cloned ( ) . all ( | r | { let v = match validators . get ( r as usize ) { Some ( v ) => v , None => return false , } ; // we must think all validators reported externally are offline. let thinks_online = self . is_online ( v ) ; ! thinks_online } ) }
Whether reports on a validator set are consistent with our view of things.
Whether reports on a validator set are consistent with our view of things .
&self
validators
&[AuthorityId]
reports
&[u32]
&self
validators
&[AuthorityId]
reports
&[u32]