mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-28 14:39:49 +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:
1 parent
8de663f105
commit
54a0f5b204
1 file changed
+1
-1
@@ -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