mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-10 17:11:03 +00:00
cleanup <weight></weight> from docs comments (#13350)
* cleanup <weight></weight> from docs comments * Changes to address review commnets * Fix CI cargo test --docs --------- Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -587,14 +587,9 @@ pub mod pallet {
|
||||
///
|
||||
/// The dispatch origin of this function must be signed.
|
||||
///
|
||||
/// # <weight>
|
||||
/// - Complexity: `O(1)`. Actual cost depends on the number of length of
|
||||
/// `T::Keys::key_ids()` which is fixed.
|
||||
/// - DbReads: `origin account`, `T::ValidatorIdOf`, `NextKeys`
|
||||
/// - DbWrites: `origin account`, `NextKeys`
|
||||
/// - DbReads per key id: `KeyOwner`
|
||||
/// - DbWrites per key id: `KeyOwner`
|
||||
/// # </weight>
|
||||
/// ## Complexity
|
||||
/// - `O(1)`. Actual cost depends on the number of length of `T::Keys::key_ids()` which is
|
||||
/// fixed.
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(T::WeightInfo::set_keys())]
|
||||
pub fn set_keys(origin: OriginFor<T>, keys: T::Keys, proof: Vec<u8>) -> DispatchResult {
|
||||
@@ -614,13 +609,9 @@ pub mod pallet {
|
||||
/// means being a controller account) or directly convertible into a validator ID (which
|
||||
/// usually means being a stash account).
|
||||
///
|
||||
/// # <weight>
|
||||
/// - Complexity: `O(1)` in number of key types. Actual cost depends on the number of length
|
||||
/// of `T::Keys::key_ids()` which is fixed.
|
||||
/// - DbReads: `T::ValidatorIdOf`, `NextKeys`, `origin account`
|
||||
/// - DbWrites: `NextKeys`, `origin account`
|
||||
/// - DbWrites per key id: `KeyOwner`
|
||||
/// # </weight>
|
||||
/// ## Complexity
|
||||
/// - `O(1)` in number of key types. Actual cost depends on the number of length of
|
||||
/// `T::Keys::key_ids()` which is fixed.
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight(T::WeightInfo::purge_keys())]
|
||||
pub fn purge_keys(origin: OriginFor<T>) -> DispatchResult {
|
||||
|
||||
Reference in New Issue
Block a user