fn check_inherent(call: &Self::Call, data: &InherentData) -> Result<(), Self::Error> {
		let offline = match call {
			Call::note_offline(ref offline) => offline,
			_ => return Ok(()),
		};

		let expected = data
			.get_data::<<T::InherentOfflineReport as InherentOfflineReport>::Inherent>(&INHERENT_IDENTIFIER)?
			.ok_or(RuntimeString::from("No `offline_report` found in the inherent data!"))?;

		<T::InherentOfflineReport as InherentOfflineReport>::check_inherent(
			&offline, &expected
		).map_err(|e| RuntimeString::from(e).into())
	}
/// Verify the validity of the given inherent.
Verify the validity of the given inherent.
Verify the validity of the given inherent .
fn check_inherent(call: &Self::Call, data: &InherentData) -> Result<(), Self::Error> {
		let offline = match call {
			Call::note_offline(ref offline) => offline,
			_ => return Ok(()),
		};
		let expected = data
			.get_data::<<T::InherentOfflineReport as InherentOfflineReport>::Inherent>(&INHERENT_IDENTIFIER)?
			.ok_or(RuntimeString::from("No `offline_report` found in the inherent data!"))?;
		<T::InherentOfflineReport as InherentOfflineReport>::check_inherent(
			&offline, &expected
		).map_err(|e| RuntimeString::from(e).into())
	}
fn check_inherent ( call : & Self :: Call , data : & InherentData ) -> Result < ( ) , Self :: Error > { let offline = match call { Call :: note_offline ( ref offline ) => offline , _ => return Ok ( ( ) ) , } ; let expected = data . get_data :: < < T :: InherentOfflineReport as InherentOfflineReport > :: Inherent > ( & INHERENT_IDENTIFIER ) ? . ok_or ( RuntimeString :: from ( " " ) ) ? ; < T :: InherentOfflineReport as InherentOfflineReport > :: check_inherent ( & offline , & expected ) . map_err ( | e | RuntimeString :: from ( e ) . into ( ) ) }
Verify the validity of the given inherent.
Verify the validity of the given inherent .
call
&Self::Call
data
&InherentData
call
&Self::Call
data
&InherentData