Skip to content
Snippets Groups Projects
Commit 1ae674dd authored by thiolliere's avatar thiolliere Committed by GitHub
Browse files

Warn about usage of pallet collective set members call. (#10156)


* warn

* Apply suggestions from code review

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

* fmt

Co-authored-by: default avatarjoe petrowski <25483142+joepetrowski@users.noreply.github.com>
parent 80c3ce15
No related merge requests found
......@@ -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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment