fn end_block(now: T::BlockNumber) -> Result {
		// pick out another public referendum if it's time.
		if (now % Self::launch_period()).is_zero() {
			Self::launch_next(now.clone())?;
		}

		// tally up votes for any expiring referenda.
		for (index, info) in Self::maturing_referenda_at(now).into_iter() {
			Self::bake_referendum(now.clone(), index, info)?;
		}

		for (proposal, index) in <DispatchQueue<T>>::take(now).into_iter().filter_map(|x| x) {
			Self::enact_proposal(proposal, index);
		}
		Ok(())
	}
/// Current era is ending; we should finish up any proposals.
Current era is ending; we should finish up any proposals.
Current era is ending ; we should finish up any proposals .
fn end_block(now: T::BlockNumber) -> Result {
		// pick out another public referendum if it's time.
		if (now % Self::launch_period()).is_zero() {
			Self::launch_next(now.clone())?;
		}
		// tally up votes for any expiring referenda.
		for (index, info) in Self::maturing_referenda_at(now).into_iter() {
			Self::bake_referendum(now.clone(), index, info)?;
		}
		for (proposal, index) in <DispatchQueue<T>>::take(now).into_iter().filter_map(|x| x) {
			Self::enact_proposal(proposal, index);
		}
		Ok(())
	}
fn end_block ( now : T :: BlockNumber ) -> Result { // pick out another public referendum if it's time. if ( now % Self :: launch_period ( ) ) . is_zero ( ) { Self :: launch_next ( now . clone ( ) ) ? ; } // tally up votes for any expiring referenda. for ( index , info ) in Self :: maturing_referenda_at ( now ) . into_iter ( ) { Self :: bake_referendum ( now . clone ( ) , index , info ) ? ; } for ( proposal , index ) in < DispatchQueue < T > > :: take ( now ) . into_iter ( ) . filter_map ( | x | x ) { Self :: enact_proposal ( proposal , index ) ; } Ok ( ( ) ) }
Current era is ending; we should finish up any proposals.
Current era is ending ; we should finish up any proposals .
now
T::BlockNumber
now
T::BlockNumber