Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions srml/session/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl<T: Trait> Module<T> {
Ok(())
}

/// Set a new era length. Won't kick in until the next era change (at current length).
/// Set a new session length. Won't kick in until the next session change (at current length).
fn set_length(new: T::BlockNumber) -> Result {
<NextSessionLength<T>>::put(new);
Ok(())
Expand Down Expand Up @@ -193,7 +193,7 @@ impl<T: Trait> Module<T> {
<CurrentIndex<T>>::put(session_index);
<CurrentStart<T>>::put(now);

// Enact era length change.
// Enact session length change.
let len_changed = if let Some(next_len) = <NextSessionLength<T>>::take() {
<SessionLength<T>>::put(next_len);
true
Expand Down