From 5469dffc3226dd2948fc0db6e24a68a7eee5b76a Mon Sep 17 00:00:00 2001 From: Tomasz Polaczyk Date: Thu, 31 Oct 2024 15:58:00 +0100 Subject: [PATCH] Some more comments --- pallets/external-validators/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pallets/external-validators/src/lib.rs b/pallets/external-validators/src/lib.rs index 93ea90698..debfcca95 100644 --- a/pallets/external-validators/src/lib.rs +++ b/pallets/external-validators/src/lib.rs @@ -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; } } @@ -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); } @@ -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 {