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

Add Ability to Add/Remove Invulnerable Collators#2596

Merged
paritytech-processbot[bot] merged 23 commits into
masterfrom
joe-addremove-invulnerable
May 29, 2023
Merged

Add Ability to Add/Remove Invulnerable Collators#2596
paritytech-processbot[bot] merged 23 commits into
masterfrom
joe-addremove-invulnerable

Conversation

@joepetrowski

@joepetrowski joepetrowski commented May 18, 2023

Copy link
Copy Markdown
Contributor

First step in a larger improvement, allowing the ability to add or remove individual collators to/from the Invulnerables set. Individuals can use this to propose themselves as invulnerables without needing to propose an entire set.

This was discussed in https://forum.polkadot.network/t/economic-model-for-system-para-collators/1010

A follow up will be to address paritytech/polkadot-sdk#106

Supersedes #2144

@joepetrowski joepetrowski added A0-please_review Pull request needs code review. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. T1-runtime This PR/Issue is related to the topic “runtime”. labels May 18, 2023
@paritytech-ci paritytech-ci requested review from a team May 18, 2023 17:44
Comment thread pallets/collator-selection/src/lib.rs Outdated
Comment thread pallets/collator-selection/src/lib.rs
Comment thread pallets/collator-selection/src/lib.rs Outdated
Comment thread pallets/collator-selection/src/lib.rs Outdated
Comment thread pallets/collator-selection/src/lib.rs Outdated
Comment thread pallets/collator-selection/src/lib.rs Outdated
Comment thread pallets/collator-selection/src/tests.rs
Co-authored-by: Ankan <10196091+Ank4n@users.noreply.github.com>
@kianenigma kianenigma requested a review from gpestana May 22, 2023 07:16

@bkchr bkchr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some changes to the migration to ensure that it works properly.

Comment thread pallets/collator-selection/src/migration.rs Outdated
Comment thread pallets/collator-selection/src/migration.rs Outdated
Comment thread pallets/collator-selection/src/migration.rs Outdated
Comment thread pallets/collator-selection/src/migration.rs Outdated
Comment thread pallets/collator-selection/src/migration.rs Outdated
Comment thread pallets/collator-selection/src/migration.rs Outdated
Comment thread pallets/collator-selection/src/migration.rs Outdated
@paritytech-ci paritytech-ci requested a review from a team May 24, 2023 12:11
Co-authored-by: Bastian Köcher <git@kchr.de>
Comment thread pallets/collator-selection/src/migration.rs Outdated

@gpestana gpestana left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a couple of suggestions in the tests, but overall lgmt.

Comment thread pallets/collator-selection/src/tests.rs
Comment thread pallets/collator-selection/src/tests.rs
Comment thread pallets/collator-selection/src/lib.rs Outdated
@paritytech-ci paritytech-ci requested a review from a team May 29, 2023 10:31
Comment thread pallets/collator-selection/src/migration.rs Outdated
@paritytech-ci paritytech-ci requested a review from a team May 29, 2023 10:33
Comment thread pallets/collator-selection/src/migration.rs
@paritytech-ci paritytech-ci requested a review from a team May 29, 2023 10:39
Comment thread pallets/collator-selection/src/migration.rs
@joepetrowski

Copy link
Copy Markdown
Contributor Author

bot merge

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. B1-note_worthy Changes should be noted in the release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. T1-runtime This PR/Issue is related to the topic “runtime”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants