Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collator migration for RTU4 #598

Merged
merged 6 commits into from
Jan 21, 2022
Merged

Fix collator migration for RTU4 #598

merged 6 commits into from
Jan 21, 2022

Conversation

mikiquantum
Copy link
Contributor

No description provided.

Copy link
Collaborator

@mustermeiszer mustermeiszer left a comment

Choose a reason for hiding this comment

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

LGTM!

But I would set CandidacyBond, so that it is not zero and we must not set it manually. But we can also leave it to zero.

Comment on lines -288 to -298
if VERSION.spec_version == IntegrateCollatorSelection::<T>::to_version() {
consumed +=
IntegrateCollatorSelection::<T>::inject_invulnerables(invulnerables.as_slice());
consumed +=
IntegrateCollatorSelection::<T>::inject_desired_candidates(DESIRED_CANDIDATES);
consumed += IntegrateCollatorSelection::<T>::inject_candidates(
candidates.as_slice(),
CANDIDACY_BOND.into(),
);
consumed +=
IntegrateCollatorSelection::<T>::inject_candidacy_bond(CANDIDACY_BOND.into());
Copy link
Collaborator

Choose a reason for hiding this comment

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

We still should inject CandidacyBond and DesiredCandidates. Or why do you want remove them? Not sure, If they are set correctly if we don`t go through genesis init.

@mikiquantum
Copy link
Contributor Author

@mustermeiszer We can set both parameters later with the council/democracy. We havent discussed them internally yet so not sure what to set there at the moment.

@mikiquantum mikiquantum merged commit 3c7f93d into parachain Jan 21, 2022
@mikiquantum mikiquantum deleted the fix/rtu4 branch January 21, 2022 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants