fn remove_offline_validators() {
        let validators_to_remove: BTreeSet<_> = <OfflineValidators<T>>::get().into_iter().collect();

        // Delete from active validator set.
        <Validators<T>>::mutate(|vs| vs.retain(|v| !validators_to_remove.contains(v)));
        log::debug!(
            target: LOG_TARGET,
            "Initiated removal of {:?} offline validators.",
            validators_to_remove.len()
        );

        // Clear the offline validator list to avoid repeated deletion.
        <OfflineValidators<T>>::put(Vec::<T::AccountId>::new());
    }
// Removes offline validators from the validator set and clears the offline cache.
Removes offline validators from the validator set and clears the offline cache.
Removes offline validators from the validator set and clears the offline cache .
fn remove_offline_validators() {
        let validators_to_remove: BTreeSet<_> = <OfflineValidators<T>>::get().into_iter().collect();
        // Delete from active validator set.
        <Validators<T>>::mutate(|vs| vs.retain(|v| !validators_to_remove.contains(v)));
        log::debug!(
            target: LOG_TARGET,
            "Initiated removal of {:?} offline validators.",
            validators_to_remove.len()
        );
        // Clear the offline validator list to avoid repeated deletion.
        <OfflineValidators<T>>::put(Vec::<T::AccountId>::new());
    }
fn remove_offline_validators ( ) { let validators_to_remove : BTreeSet < _ > = < OfflineValidators < T > > :: get ( ) . into_iter ( ) . collect ( ) ; // Delete from active validator set. < Validators < T > > :: mutate ( | vs | vs . retain ( | v | ! validators_to_remove . contains ( v ) ) ) ; log :: debug ! ( target LOG_TARGET " " validators_to_remove len ( ) ) ; // Clear the offline validator list to avoid repeated deletion. < OfflineValidators < T > > :: put ( Vec :: < T :: AccountId > :: new ( ) ) ; }
Removes offline validators from the validator set and clears the offline cache.
Removes offline validators from the validator set and clears the offline cache .