fn validate_unsigned(
			_source: TransactionSource,
			call: &Self::Call,
		) -> TransactionValidity {

			if let Call::clear_email_requests_unsigned(block_number,_processed_requests) = call {
				Self::validate_transaction(block_number)
			} else {
				InvalidTransaction::Call.into()
			}
		}
/// Validate unsigned call to this module.
///
/// By default unsigned transactions are disallowed, but implementing the validator
/// here we make sure that some particular calls (the ones produced by offchain worker)
/// are being whitelisted and marked as valid.
Validate unsigned call to this module.
By default unsigned transactions are disallowed, but implementing the validator
here we make sure that some particular calls (the ones produced by offchain worker)
are being whitelisted and marked as valid.
Validate unsigned call to this module . By default unsigned transactions are disallowed but implementing the validator here we make sure that some particular calls ( the ones produced by offchain worker ) are being whitelisted and marked as valid .
fn validate_unsigned(
			_source: TransactionSource,
			call: &Self::Call,
		) -> TransactionValidity {
			if let Call::clear_email_requests_unsigned(block_number,_processed_requests) = call {
				Self::validate_transaction(block_number)
			} else {
				InvalidTransaction::Call.into()
			}
		}
fn validate_unsigned ( _source : TransactionSource , call : & Self :: Call , ) -> TransactionValidity { if let Call :: clear_email_requests_unsigned ( block_number , _processed_requests ) = call { Self :: validate_transaction ( block_number ) } else { InvalidTransaction :: Call . into ( ) } }
Validate unsigned call to this module.
Validate unsigned call to this module .
_source
TransactionSource
call
&Self::Call
_source
TransactionSource
call
&Self::Call