Function pallet_collective::source ·
pallet:: dispatchables:: set_members
pub fn set_members<T: Config<I>, I: 'static>( new_members: Vec<T::AccountId>, prime: Option<T::AccountId>, old_count: MemberCount )
Set the collective’s membership.
new_members: The new member list. Be nice to the chain and provide it sorted.
prime: The prime member whose vote sets the default.
old_count: The upper bound for the previous number of members in storage. Used for weight estimation.
The dispatch of this call must be
NOTE: Does not enforce the expected
MaxMembers limit on the amount of members, but
the weight estimations rely on it to estimate dispatchable weight.
pallet-collective can also be managed by logic outside of the pallet through the
implementation of the trait
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.
O(MP + N)where:
Mold-members-count (code- and governance-bounded)
Nnew-members-count (code- and governance-bounded)
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in