fn register_aura_inherent_data_provider(
	inherent_data_providers: &InherentDataProviders,
	slot_duration: u64,
) -> Result<(), consensus_common::Error> {
	if !inherent_data_providers.has_provider(&srml_aura::INHERENT_IDENTIFIER) {
		inherent_data_providers
			.register_provider(srml_aura::InherentDataProvider::new(slot_duration))
			.map_err(inherent_to_common_error)
	} else {
		Ok(())
	}
}
/// Register the aura inherent data provider, if not registered already.
Register the aura inherent data provider, if not registered already.
Register the aura inherent data provider if not registered already .
fn register_aura_inherent_data_provider(
	inherent_data_providers: &InherentDataProviders,
	slot_duration: u64,
) -> Result<(), consensus_common::Error> {
	if !inherent_data_providers.has_provider(&srml_aura::INHERENT_IDENTIFIER) {
		inherent_data_providers
			.register_provider(srml_aura::InherentDataProvider::new(slot_duration))
			.map_err(inherent_to_common_error)
	} else {
		Ok(())
	}
}
fn register_aura_inherent_data_provider ( inherent_data_providers : & InherentDataProviders , slot_duration : u64 , ) -> Result < ( ) , consensus_common :: Error > { if ! inherent_data_providers . has_provider ( & srml_aura :: INHERENT_IDENTIFIER ) { inherent_data_providers . register_provider ( srml_aura :: InherentDataProvider :: new ( slot_duration ) ) . map_err ( inherent_to_common_error ) } else { Ok ( ( ) ) } }
Register the aura inherent data provider, if not registered already.
Register the aura inherent data provider if not registered already .
inherent_data_providers
&InherentDataProviders
slot_duration
u64
inherent_data_providers
&InherentDataProviders
slot_duration
u64