fn start_session(start_session: SessionIndex) {
        let next_active_era = Self::active_era().map(|e| e.index + 1).unwrap_or(0);
        if let Some(next_active_era_start_session_index) =
            Self::eras_start_session_index(next_active_era)
        {
            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.
                frame_support::print("Warning: A session appears to have been skipped.");
                Self::start_era(start_session);
            }
        }
    }
/// Start a session potentially starting an era.
Start a session potentially starting an era.
Start a session potentially starting an era .
fn start_session(start_session: SessionIndex) {
        let next_active_era = Self::active_era().map(|e| e.index + 1).unwrap_or(0);
        if let Some(next_active_era_start_session_index) =
            Self::eras_start_session_index(next_active_era)
        {
            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.
                frame_support::print("Warning: A session appears to have been skipped.");
                Self::start_era(start_session);
            }
        }
    }
fn start_session ( start_session : SessionIndex ) { let next_active_era = Self :: active_era ( ) . map ( | e | e . index + 1 ) . unwrap_or ( 0 ) ; if let Some ( next_active_era_start_session_index ) = Self :: eras_start_session_index ( next_active_era ) { 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. frame_support :: print ( " " ) ; Self :: start_era ( start_session ) ; } } }
Start a session potentially starting an era.
Start a session potentially starting an era .
start_session
SessionIndex