Drew.commentfix: There is no next_era function in staking. (#915)

* Change next_era to new_era in comments so there is no confusion

* Change next_era to new_era in comments so there is no confusion
This commit is contained in:
Drew Stone
2018-10-16 21:58:19 +03:00
committed by Gav Wood
parent 8de663f105
commit 54a0f5b204
+1 -1
View File
@@ -153,7 +153,7 @@ impl<T: Trait> Module<T> {
/// Set the current set of validators.
///
/// Called by `staking::next_era()` only. `next_session` should be called after this in order to
/// Called by `staking::new_era()` only. `next_session` should be called after this in order to
/// update the session keys to the next validator set.
pub fn set_validators(new: &[T::AccountId]) {
<Validators<T>>::put(&new.to_vec()); // TODO: optimise.