From c088756ee3293b2fe05b9cbe684145fb5fc4005f Mon Sep 17 00:00:00 2001 From: thiolliere Date: Wed, 22 Jan 2020 14:25:53 +0100 Subject: [PATCH] update doc --- frame/staking/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frame/staking/src/lib.rs b/frame/staking/src/lib.rs index 1e1331703f63a..dfc116fbb8bc0 100644 --- a/frame/staking/src/lib.rs +++ b/frame/staking/src/lib.rs @@ -1308,15 +1308,16 @@ decl_module! { /// WARNING: Incorrect arguments here can result in loss of payout. Be very careful. /// /// # - /// - Number of storage read of `O(validators)`; `validators` is the argument of the call. + /// - Number of storage read of `O(validators)`; `validators` is the argument of the call, + /// and is bounded by `MAX_NOMINATIONS`. /// - Each storage read is `O(N)` size and decode complexity; `N` is the maximum /// nominations that can be given to a single validator. /// - Computation complexity: `O(MAX_NOMINATIONS * logN)`; `MAX_NOMINATIONS` is the /// maximum number of validators that may be nominated by a single nominator, it is /// bounded only economically (all nominators are required to place a minimum stake). /// # - #[weight = SimpleDispatchInfo::FixedNormal(500_000)] // TODO: Limit the amount of nominators that can be assigned to a validator by Phragmen. + #[weight = SimpleDispatchInfo::FixedNormal(500_000)] fn payout_nominator(origin, era: EraIndex, validators: Vec) -> DispatchResult {