fn end_block(block_number: T::BlockNumber) -> Result {
		if (block_number % Self::voting_period()).is_zero() {
			if let Some(number) = Self::next_tally() {
				if block_number == number {
					Self::start_tally();
				}
			}
		}
		if let Some((number, _, _)) = Self::next_finalize() {
			if block_number == number {
				Self::finalize_tally()?
			}
		}
		Ok(())
	}
// Private
/// Check that there's nothing to do this block.
Private
Check that there's nothing to do this block.
Private Check that there ' s nothing to do this block .
fn end_block(block_number: T::BlockNumber) -> Result {
		if (block_number % Self::voting_period()).is_zero() {
			if let Some(number) = Self::next_tally() {
				if block_number == number {
					Self::start_tally();
				}
			}
		}
		if let Some((number, _, _)) = Self::next_finalize() {
			if block_number == number {
				Self::finalize_tally()?
			}
		}
		Ok(())
	}
fn end_block ( block_number : T :: BlockNumber ) -> Result { if ( block_number % Self :: voting_period ( ) ) . is_zero ( ) { if let Some ( number ) = Self :: next_tally ( ) { if block_number == number { Self :: start_tally ( ) ; } } } if let Some ( ( number , _ , _ ) ) = Self :: next_finalize ( ) { if block_number == number { Self :: finalize_tally ( ) ? } } Ok ( ( ) ) }
Private
Check that there's nothing to do this block.
Private Check that there ' s nothing to do this block .
block_number
T::BlockNumber
block_number
T::BlockNumber