fn do_set_keys(account: &T::AccountId, keys: T::Keys) -> dispatch::DispatchResult {
        let who = T::ValidatorIdOf::convert(account.clone())
            .ok_or(Error::<T>::NoAssociatedValidatorId)?;
        {
            if !frame_system::Pallet::<T>::can_inc_consumer(&account) {
                {
                    return Err(Error::<T>::NoAccount.into());
                };
            }
        };
        let old_keys = Self::inner_set_keys(&who, keys)?;
        if old_keys.is_none() {
            let assertion = frame_system::Pallet::<T>::inc_consumers(&account).is_ok();
            if true {
                if !assertion {
                    {
                        ::std::rt::begin_panic(
                            "can_inc_consumer() returned true; no change since; qed",
                        )
                    }
                };
            };
        }
        Ok(())
    }
/// Perform the set_key operation, checking for duplicates. Does not set `Changed`.
///
/// This ensures that the reference counter in system is incremented appropriately and as such
/// must accept an account ID, rather than a validator ID.
Perform the set_key operation, checking for duplicates. Does not set `Changed`.
This ensures that the reference counter in system is incremented appropriately and as such
must accept an account ID, rather than a validator ID.
Perform the set_key operation checking for duplicates . Does not set ` Changed ` . This ensures that the reference counter in system is incremented appropriately and as such must accept an account ID rather than a validator ID .
fn do_set_keys(account: &T::AccountId, keys: T::Keys) -> dispatch::DispatchResult {
        let who = T::ValidatorIdOf::convert(account.clone())
            .ok_or(Error::<T>::NoAssociatedValidatorId)?;
        {
            if !frame_system::Pallet::<T>::can_inc_consumer(&account) {
                {
                    return Err(Error::<T>::NoAccount.into());
                };
            }
        };
        let old_keys = Self::inner_set_keys(&who, keys)?;
        if old_keys.is_none() {
            let assertion = frame_system::Pallet::<T>::inc_consumers(&account).is_ok();
            if true {
                if !assertion {
                    {
                        ::std::rt::begin_panic(
                            "can_inc_consumer() returned true; no change since; qed",
                        )
                    }
                };
            };
        }
        Ok(())
    }
fn do_set_keys ( account : & T :: AccountId , keys : T :: Keys ) -> dispatch :: DispatchResult { let who = T :: ValidatorIdOf :: convert ( account . clone ( ) ) . ok_or ( Error :: < T > :: NoAssociatedValidatorId ) ? ; { if ! frame_system :: Pallet :: < T > :: can_inc_consumer ( & account ) { { return Err ( Error :: < T > :: NoAccount . into ( ) ) ; } ; } } ; let old_keys = Self :: inner_set_keys ( & who , keys ) ? ; if old_keys . is_none ( ) { let assertion = frame_system :: Pallet :: < T > :: inc_consumers ( & account ) . is_ok ( ) ; if true { if ! assertion { { :: std :: rt :: begin_panic ( " " , ) } } ; } ; } Ok ( ( ) ) }
Perform the set_key operation, checking for duplicates.
Perform the set_key operation checking for duplicates .
account
&T::AccountId
keys
T::Keys
account
&T::AccountId
keys
T::Keys