fn initialize<T: Config>() {
	// Remove everything from storage
	Ledger::<T>::remove_all(None);
	RegisteredProviders::<T>::remove_all(None);
	GeneralEraInfo::<T>::remove_all(None);
	ProviderEraStake::<T>::remove_all(None);
	GeneralStakerInfo::<T>::remove_all(None);
	CurrentEra::<T>::kill();
	BlockRewardAccumulator::<T>::kill();

	// Initialize the first block
	DapiStaking::<T>::on_unbalanced(T::Currency::issue(BLOCK_REWARD.into()));
	DapiStaking::<T>::on_initialize(1u32.into());
}
/// Used to prepare Dapi staking for testing.
/// Resets all existing storage ensuring a clean run for the code that follows.
///
/// Also initializes the first block which should start a new era.
Used to prepare Dapi staking for testing.
Resets all existing storage ensuring a clean run for the code that follows.

Also initializes the first block which should start a new era.
Used to prepare Dapi staking for testing . Resets all existing storage ensuring a clean run for the code that follows . Also initializes the first block which should start a new era .
fn initialize<T: Config>() {
	// Remove everything from storage
	Ledger::<T>::remove_all(None);
	RegisteredProviders::<T>::remove_all(None);
	GeneralEraInfo::<T>::remove_all(None);
	ProviderEraStake::<T>::remove_all(None);
	GeneralStakerInfo::<T>::remove_all(None);
	CurrentEra::<T>::kill();
	BlockRewardAccumulator::<T>::kill();
	// Initialize the first block
	DapiStaking::<T>::on_unbalanced(T::Currency::issue(BLOCK_REWARD.into()));
	DapiStaking::<T>::on_initialize(1u32.into());
}
fn initialize < T : Config > ( ) { // Remove everything from storage Ledger :: < T > :: remove_all ( None ) ; RegisteredProviders :: < T > :: remove_all ( None ) ; GeneralEraInfo :: < T > :: remove_all ( None ) ; ProviderEraStake :: < T > :: remove_all ( None ) ; GeneralStakerInfo :: < T > :: remove_all ( None ) ; CurrentEra :: < T > :: kill ( ) ; BlockRewardAccumulator :: < T > :: kill ( ) ; // Initialize the first block DapiStaking :: < T > :: on_unbalanced ( T :: Currency :: issue ( BLOCK_REWARD . into ( ) ) ) ; DapiStaking :: < T > :: on_initialize ( 1u32 . into ( ) ) ; }
Used to prepare Dapi staking for testing.
Used to prepare Dapi staking for testing .