pub(crate) fn ban(&mut self, vid: &VID) {
        if let Some(idx) = self.get_index(vid) {
            self.validators[idx.0 as usize].banned = true;
            self.validators[idx.0 as usize].can_propose = false;
        }
    }
/// Marks the validator with that ID as banned, if it exists, and excludes it from the leader
/// sequence.
Marks the validator with that ID as banned, if it exists, and excludes it from the leader
sequence.
Marks the validator with that ID as banned if it exists and excludes it from the leader sequence .
pub(crate) fn ban(&mut self, vid: &VID) {
        if let Some(idx) = self.get_index(vid) {
            self.validators[idx.0 as usize].banned = true;
            self.validators[idx.0 as usize].can_propose = false;
        }
    }
pub ( crate ) fn ban ( & mut self , vid : & VID ) { if let Some ( idx ) = self . get_index ( vid ) { self . validators [ idx . 0 as usize ] . banned = true ; self . validators [ idx . 0 as usize ] . can_propose = false ; } }
Marks the validator with that ID as banned, if it exists, and excludes it from the leader
sequence.
Marks the validator with that ID as banned if it exists and excludes it from the leader sequence .
&mut self
vid
&VID
&mut self
vid
&VID