Skip to content

Commit

Permalink
Warn about usage of pallet collective set members call. (paritytech#1…
Browse files Browse the repository at this point in the history
…0156)

* warn

* Apply suggestions from code review

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* fmt

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
  • Loading branch information
2 people authored and grishasobol committed Mar 28, 2022
1 parent b95677e commit 0761bea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frame/collective/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,13 @@ pub mod pallet {
/// NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
/// the weight estimations rely on it to estimate dispatchable weight.
///
/// # WARNING:
///
/// The `pallet-collective` can also be managed by logic outside of the pallet through the
/// implementation of the trait [`ChangeMembers`].
/// Any call to `set_members` must be careful that the member set doesn't get out of sync
/// with other logic managing the member set.
///
/// # <weight>
/// ## Weight
/// - `O(MP + N)` where:
Expand Down

0 comments on commit 0761bea

Please sign in to comment.