INNER CODE UNIT · Rust
Some
AstarNetwork/Astar · pallets/collator-selection/src/lib.rs:741
if let Some(dest) = SlashDestination::<T>::get() {
T::Currency::resolve_creating(&dest, imbalance);
}
<LastAuthoredBlock<T>>::remove(who);
Self::deposit_event(Event::CandidateSlashed(who.clone()));
}
});
}
/// Assemble the current set of candidates and invulnerables into the next collator set.
///
/// This is done on the fly, as frequent as we are told to do so, as the session manager.
pub fn assemble_collators(candidates: Vec<T::AccountId>) -> Vec<T::AccountId> {
let mut collators = Invulnerables::<T>::get();
collators.extend(candidates.into_iter());
collators