Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
refactor
  • Loading branch information
gui1117 committed Dec 11, 2019
commit 02cb21eb327e54269c917d40dcbf80d219b44ebd
3 changes: 1 addition & 2 deletions frame/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1365,8 +1365,6 @@ impl<T: Trait> Module<T> {
era_start.remove(0)
});

Self::apply_unapplied_slashes(new_current_era);

let bonding_duration = T::BondingDuration::get();

BondedEras::mutate(|bonded| {
Expand All @@ -1391,6 +1389,7 @@ impl<T: Trait> Module<T> {
}
});

Self::apply_unapplied_slashes(new_current_era);
}

/// Provide the validator set for the next future session. If it's an era-end, along with the
Expand Down