fn apply_unapplied_slashes(active_era: EraIndex) {
        let slash_defer_duration = T::SlashDeferDuration::get();
        <Self as Store>::EarliestUnappliedSlash::mutate(|earliest| if let Some(ref mut earliest) = earliest {
            let keep_from = active_era.saturating_sub(slash_defer_duration);
            for era in (*earliest)..keep_from {
                let era_slashes = <Self as Store>::UnappliedSlashes::take(&era);
                for slash in era_slashes {
                    slashing::apply_slash::<T>(slash);
                }
            }

            *earliest = (*earliest).max(keep_from)
        })
    }
/// Apply previously-unapplied slashes on the beginning of a new era, after a delay.
Apply previously-unapplied slashes on the beginning of a new era, after a delay.
Apply previously - unapplied slashes on the beginning of a new era after a delay .
fn apply_unapplied_slashes(active_era: EraIndex) {
        let slash_defer_duration = T::SlashDeferDuration::get();
        <Self as Store>::EarliestUnappliedSlash::mutate(|earliest| if let Some(ref mut earliest) = earliest {
            let keep_from = active_era.saturating_sub(slash_defer_duration);
            for era in (*earliest)..keep_from {
                let era_slashes = <Self as Store>::UnappliedSlashes::take(&era);
                for slash in era_slashes {
                    slashing::apply_slash::<T>(slash);
                }
            }
            *earliest = (*earliest).max(keep_from)
        })
    }
fn apply_unapplied_slashes ( active_era : EraIndex ) { let slash_defer_duration = T :: SlashDeferDuration :: get ( ) ; < Self as Store > :: EarliestUnappliedSlash :: mutate ( | earliest | if let Some ( ref mut earliest ) = earliest { let keep_from = active_era . saturating_sub ( slash_defer_duration ) ; for era in ( * earliest ) .. keep_from { let era_slashes = < Self as Store > :: UnappliedSlashes :: take ( & era ) ; for slash in era_slashes { slashing :: apply_slash :: < T > ( slash ) ; } } * earliest = ( * earliest ) . max ( keep_from ) } ) }
Apply previously-unapplied slashes on the beginning of a new era, after a delay.
Apply previously - unapplied slashes on the beginning of a new era after a delay .
active_era
EraIndex