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

Custom origin for staking pallet calls #12943

Closed
wants to merge 4 commits into from
Closed

Conversation

Ank4n
Copy link
Contributor

@Ank4n Ank4n commented Dec 15, 2022

Fixes #12930
polkadot companion: paritytech/polkadot#6444

I have left set_invulnerables to still require root origin since it seems not something that should ever need to be set unless during the initial phase of a chain. Please correct me if this assumption is incorrect.

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Dec 15, 2022
@Ank4n Ank4n added B3-apinoteworthy 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 A0-please_review Pull request needs code review. and removed A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Dec 15, 2022
@Ank4n
Copy link
Contributor Author

Ank4n commented Dec 23, 2022

Kian raised an issue and I agree that lowering privilege for the critical staking operations like reducing validator count or setting minimum/maximum bounds needs more careful thought. I will make the changes to the PR to only allow slash cancelling and setting minimum commission via StakingAdmin origin.

@Ank4n Ank4n marked this pull request as draft December 23, 2022 13:10
@Ank4n Ank4n added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A0-please_review Pull request needs code review. labels Dec 23, 2022
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

Needs a rework as per the comment above.

@Ank4n
Copy link
Contributor Author

Ank4n commented Dec 25, 2022

Updated PR: #13018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A3-in_progress Pull request is in progress. No review needed at this stage. 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
Status: Done
Development

Successfully merging this pull request may close these issues.

Revise staking origins
5 participants