pub fn note_new_block(&mut self, validators: &[AuthorityId]) {
		use std::collections::HashSet;

		let set: HashSet<_> = validators.iter().cloned().collect();
		self.observed.retain(|k, _| set.contains(k));
	}
/// Note new consensus is starting with the given set of validators.
Note new consensus is starting with the given set of validators.
Note new consensus is starting with the given set of validators .
pub fn note_new_block(&mut self, validators: &[AuthorityId]) {
		use std::collections::HashSet;
		let set: HashSet<_> = validators.iter().cloned().collect();
		self.observed.retain(|k, _| set.contains(k));
	}
pub fn note_new_block ( & mut self , validators : & [ AuthorityId ] ) { use std :: collections :: HashSet ; let set : HashSet < _ > = validators . iter ( ) . cloned ( ) . collect ( ) ; self . observed . retain ( | k , _ | set . contains ( k ) ) ; }
Note new consensus is starting with the given set of validators.
Note new consensus is starting with the given set of validators .
&mut self
validators
&[AuthorityId]
&mut self
validators
&[AuthorityId]