Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

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

Merged
paritytech-processbot[bot] merged 3 commits into
masterfrom
gui-warn-erro-prone-api
Nov 11, 2021
Merged

Warn about usage of pallet collective set members call.#10156
paritytech-processbot[bot] merged 3 commits into
masterfrom
gui-warn-erro-prone-api

Conversation

@gui1117

@gui1117 gui1117 commented Nov 2, 2021

Copy link
Copy Markdown
Contributor

Currently the pallet collective allows other pallet to manage the member set through the implementation of ChangeMembers but also directly with set_members root call.

But both are quite incompatible. Or at least they must stay in sync.
Like currently on kusama if we call set_members without modifying the storage of pallet-membership they would get out of sync.
And the next call to change_members from pallet-membership will be inaccurate in regards to who are the member in pallet-collective.

I think this call is a bit error prone.

@github-actions github-actions Bot added the A0-please_review Pull request needs code review. label Nov 2, 2021
@gui1117 gui1117 added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Nov 2, 2021
Comment thread frame/collective/src/lib.rs Outdated
Comment thread frame/collective/src/lib.rs Outdated
gui1117 and others added 2 commits November 2, 2021 21:37
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
@KiChjang

Copy link
Copy Markdown
Contributor

bot merge

@paritytech-processbot paritytech-processbot Bot merged commit e5abe55 into master Nov 11, 2021
@paritytech-processbot paritytech-processbot Bot deleted the gui-warn-erro-prone-api branch November 11, 2021 22:53
ordian added a commit that referenced this pull request Nov 12, 2021
* master: (27 commits)
  Bump rustversion from 1.0.4 to 1.0.5 (#10243)
  Kill the light client, CHTs and change tries. (#10080)
  tuple to struct event variants (#10206)
  Bump thiserror from 1.0.26 to 1.0.30 (#10240)
  Warn about usage of pallet collective set members call. (#10156)
  Bump git2 from 0.13.22 to 0.13.23 (#10238)
  Add group name in task metrics  (#10196)
  Bump proc-macro-crate from 1.0.0 to 1.1.0 (#10237)
  Bump parity-util-mem from 0.10.0 to 0.10.2 (#10236)
  Bump substrate-bip39 from 0.4.2 to 0.4.4 (#10213)
  Upgrade jsonrpsee to v0.4.1 (#10022)
  expose substrate-cli service (#10229)
  Intend to reactivate cargo-unleash check (#10167)
  CI: build docs with deps (#9884)
  use CountedMap in pallet-bags-list (#10179)
  Move all example pallets under `examples` folder. (#10215)
  Upgrade wasm builder (#10226)
  upgrade ss58-registry with additional networks. (#10224)
  move wiki -> docs (#10225)
  new remote-ext mode: (#10192)
  ...
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
…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>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants