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

feat: remove sudo #515

Merged
merged 9 commits into from
Jul 15, 2022
Merged

feat: remove sudo #515

merged 9 commits into from
Jul 15, 2022

Conversation

martinfridrich
Copy link
Contributor

@martinfridrich martinfridrich commented Jul 11, 2022

Sudo pallet was removed from basilisk runtime.

some root only actions shifted to the council and technical comitee

@martinfridrich martinfridrich changed the title feat/remove sudo feat: remove sudo Jul 11, 2022
@github-actions
Copy link

github-actions bot commented Jul 11, 2022

Runtime version has not been increased.

@codecov
Copy link

codecov bot commented Jul 11, 2022

Codecov Report

Merging #515 (45ea8f6) into master (5c3bd56) will decrease coverage by 0.04%.
The diff coverage is n/a.

❗ Current head 45ea8f6 differs from pull request most recent head 02582b6. Consider uploading reports for the commit 02582b6 to get more accurate results

@@            Coverage Diff             @@
##           master     #515      +/-   ##
==========================================
- Coverage   81.25%   81.21%   -0.05%     
==========================================
  Files          19       19              
  Lines        1942     1927      -15     
==========================================
- Hits         1578     1565      -13     
+ Misses        364      362       -2     
Impacted Files Coverage Δ
pallets/duster/src/lib.rs 72.72% <0.00%> (-5.66%) ⬇️
pallets/xyk/src/impls.rs 81.81% <0.00%> (ø)
pallets/xyk/src/lib.rs 85.28% <0.00%> (+0.79%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c4f6e2f...02582b6. Read the comment docs.

Copy link
Member

@mrq1911 mrq1911 left a comment

Choose a reason for hiding this comment

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

we should shift some configuration tasks to the technical comitee majority

@martinfridrich
Copy link
Contributor Author

we should shift some configuration tasks to the technical comitee majority

Which one? Most of the pallets are already configured ...TechCommitteeOrRoot.

@mrq1911 mrq1911 marked this pull request as ready for review July 14, 2022 15:43
@mrq1911
Copy link
Member

mrq1911 commented Jul 14, 2022

we should shift some configuration tasks to the technical comitee majority

Which one? Most of the pallets are already configured ...TechCommitteeOrRoot.

ok, i'll review it case by case

@mrq1911 mrq1911 added this to the 10 milestone Jul 15, 2022
@mrq1911 mrq1911 self-requested a review July 15, 2022 20:38
Copy link
Contributor

@enthusiastmartin enthusiastmartin left a comment

Choose a reason for hiding this comment

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

Lgtm

@@ -737,8 +717,7 @@ impl pallet_tips::Config for Runtime {
impl pallet_collator_selection::Config for Runtime {
type Event = Event;
type Currency = Balances;
//allow 1/2 of council to execute privileged collator selection operations. (require code from: feat/initial_chain_setup)
type UpdateOrigin = EnsureMajorityCouncilOrRoot;
type UpdateOrigin = MajorityTechCommitteeOrRoot;
Copy link
Contributor

Choose a reason for hiding this comment

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

This has changed from council to committee.

Is it correct?

Copy link
Member

Choose a reason for hiding this comment

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

yes, currently required to maintain stable running chain

type ExecuteOverweightOrigin = EnsureRoot<AccountId>;
type ControllerOrigin = crate::EnsureMajorityCouncilOrRoot;
type ExecuteOverweightOrigin = MajorityTechCommitteeOrRoot;
type ControllerOrigin = MajorityTechCommitteeOrRoot;
Copy link
Contributor

Choose a reason for hiding this comment

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

Also here from council to comitte. Just making sure that it is conscious decision

Copy link
Member

Choose a reason for hiding this comment

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

yes, these roles are more for sorting out technical issues

@mrq1911 mrq1911 merged commit b7c5a63 into master Jul 15, 2022
@jak-pan jak-pan deleted the feat/remove_sudo branch February 22, 2024 10:57
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.

3 participants