mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 00:41:08 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user