This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Handle Collator Candidate to Invulnerable Path #2782
Labels
J0-enhancement
An additional feature request.
T1-runtime
This PR/Issue is related to the topic “runtime”.
When registering as a candidate, Collator Selection ensures that the user is not already invulnerable. However, it is possible that a candidate becomes invulnerable via governance referendum (either within
set_invulnerables
oradd_invulnerable
).When adding an invulnerable, the system should check if they are a candidate, and try to remove them (it may not be possible due to
T::MinCandidates
, but it should try).Edit: On further thought, we should reconsider this
MinCandidates
item. It does not include Invulnerables, but it's there AFAIK to make sure there is always one collator in the set. Invulnerables should fulfill this requirement, so I think thatMinCandidates
should include Invulnerables and be renamed toMinSetSize
.The text was updated successfully, but these errors were encountered: