mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
Warn about usage of pallet collective set members call. (#10156)
* 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>
This commit is contained in:
committed by
GitHub
parent
80c3ce1590
commit
1ae674dd76
@@ -345,6 +345,13 @@ pub mod pallet {
|
|||||||
/// NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
/// NOTE: Does not enforce the expected `MaxMembers` limit on the amount of members, but
|
||||||
/// the weight estimations rely on it to estimate dispatchable weight.
|
/// 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>
|
||||||
/// ## Weight
|
/// ## Weight
|
||||||
/// - `O(MP + N)` where:
|
/// - `O(MP + N)` where:
|
||||||
|
|||||||
Reference in New Issue
Block a user