fn advance_to_era<T: Config>(n: EraIndex) {
	while DapiStaking::<T>::current_era() < n {
		DapiStaking::<T>::on_initialize(System::<T>::block_number());
		System::<T>::set_block_number(System::<T>::block_number() + One::one());
		// This is performed outside of dapi staking but we expect it before on_initialize
		DapiStaking::<T>::on_unbalanced(T::Currency::issue(BLOCK_REWARD.into()));
		DapiStaking::<T>::on_initialize(System::<T>::block_number());
	}
}
/// Advance to the specified era, block by block.
Advance to the specified era, block by block.
Advance to the specified era block by block .
fn advance_to_era<T: Config>(n: EraIndex) {
	while DapiStaking::<T>::current_era() < n {
		DapiStaking::<T>::on_initialize(System::<T>::block_number());
		System::<T>::set_block_number(System::<T>::block_number() + One::one());
		// This is performed outside of dapi staking but we expect it before on_initialize
		DapiStaking::<T>::on_unbalanced(T::Currency::issue(BLOCK_REWARD.into()));
		DapiStaking::<T>::on_initialize(System::<T>::block_number());
	}
}
fn advance_to_era < T : Config > ( n : EraIndex ) { while DapiStaking :: < T > :: current_era ( ) < n { DapiStaking :: < T > :: on_initialize ( System :: < T > :: block_number ( ) ) ; System :: < T > :: set_block_number ( System :: < T > :: block_number ( ) + One :: one ( ) ) ; // This is performed outside of dapi staking but we expect it before on_initialize DapiStaking :: < T > :: on_unbalanced ( T :: Currency :: issue ( BLOCK_REWARD . into ( ) ) ) ; DapiStaking :: < T > :: on_initialize ( System :: < T > :: block_number ( ) ) ; } }
Advance to the specified era, block by block.
Advance to the specified era block by block .
n
EraIndex