pub fn check_rotate_session(block_number: T::BlockNumber) {
		// Do this last, after the staking system has had the chance to switch out the authorities for the
		// new set.
		// Check block number and call `rotate_session` if necessary.
		let is_final_block = ((block_number - Self::last_length_change()) % Self::length()).is_zero();
		let (should_end_session, apply_rewards) = <ForcingNewSession<T>>::take()
			.map_or((is_final_block, is_final_block), |apply_rewards| (true, apply_rewards));
		if should_end_session {
			Self::rotate_session(is_final_block, apply_rewards);
		}
	}
/// Hook to be called after transaction processing.
Hook to be called after transaction processing.
Hook to be called after transaction processing .
pub fn check_rotate_session(block_number: T::BlockNumber) {
		// Do this last, after the staking system has had the chance to switch out the authorities for the
		// new set.
		// Check block number and call `rotate_session` if necessary.
		let is_final_block = ((block_number - Self::last_length_change()) % Self::length()).is_zero();
		let (should_end_session, apply_rewards) = <ForcingNewSession<T>>::take()
			.map_or((is_final_block, is_final_block), |apply_rewards| (true, apply_rewards));
		if should_end_session {
			Self::rotate_session(is_final_block, apply_rewards);
		}
	}
pub fn check_rotate_session ( block_number : T :: BlockNumber ) { // Do this last, after the staking system has had the chance to switch out the authorities for the // new set. // Check block number and call `rotate_session` if necessary. let is_final_block = ( ( block_number - Self :: last_length_change ( ) ) % Self :: length ( ) ) . is_zero ( ) ; let ( should_end_session , apply_rewards ) = < ForcingNewSession < T > > :: take ( ) . map_or ( ( is_final_block , is_final_block ) , | apply_rewards | ( true , apply_rewards ) ) ; if should_end_session { Self :: rotate_session ( is_final_block , apply_rewards ) ; } }
Hook to be called after transaction processing.
Hook to be called after transaction processing .
block_number
T::BlockNumber
block_number
T::BlockNumber