Skip to content

Commit

Permalink
Some more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Oct 31, 2024
1 parent efc69f1 commit 5469dff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pallets/external-validators/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ pub mod pallet {
Forcing::NotForcing if era_length >= T::SessionsPerEra::get() => (),
_ => {
// Either `Forcing::ForceNone`,
// or `Forcing::NotForcing if era_length >= T::SessionsPerEra::get()`.
// or `Forcing::NotForcing if era_length < T::SessionsPerEra::get()`.
return None;
}
}
Expand Down Expand Up @@ -431,8 +431,7 @@ pub mod pallet {
if next_active_era_start_session_index == start_session {
Self::start_era(start_session);
} else if next_active_era_start_session_index < start_session {
// This arm should never happen, but better handle it than to stall the staking
// pallet.
// This arm should never happen, but better handle it than to stall the pallet.
frame_support::print("Warning: A session appears to have been skipped.");
Self::start_era(start_session);
}
Expand Down Expand Up @@ -483,7 +482,6 @@ pub mod pallet {
/// * Bump the current era storage (which holds the latest planned era).
/// * Store start session index for the new planned era.
/// * Clean old era information.
/// * Store staking information for the new planned era
///
/// Returns the new validator set.
pub fn trigger_new_era(start_session_index: SessionIndex) -> Vec<T::ValidatorId> {
Expand Down

0 comments on commit 5469dff

Please sign in to comment.