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

More lenient mechanism for identifying stash accounts in purge_keys #10004

Merged
merged 5 commits into from
Oct 14, 2021

Conversation

gavofyork
Copy link
Member

Provides a fallback so a stash account can be provided as well as a controller account to identify a validator for key purging. This is because key purging should be able to happen after the staking controller/stash pair has been removed. Right now that's impossible.

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Oct 11, 2021
@gavofyork gavofyork changed the title More lenient StashOf finder More lenient mechanism for identifying stash accounts in purge_keys Oct 11, 2021
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

The docs of the purge_keys function dispatchable should be updated.

@gavofyork gavofyork added B7-runtimenoteworthy 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 labels Oct 12, 2021
@gavofyork gavofyork added this to the Polkadot 0.9.12 milestone Oct 12, 2021
@gavofyork gavofyork merged commit f70b1ca into master Oct 14, 2021
@gavofyork gavofyork deleted the gav-lenient-stashof branch October 14, 2021 14:45
@shawntabrizi
Copy link
Member

shawntabrizi commented Oct 14, 2021

This closes: #8543 ?

@gavofyork
Copy link
Member Author

Yup guess so.

@gavofyork
Copy link
Member Author

@rphmeier could you sanity-check this? I can't see how it could possibl open up any attack vector, but you had some concerns in #8543 .

@rphmeier
Copy link
Contributor

I looked it over, and looked for implications in the staking pallet and session_historical pallet, and didn't find any. Seems fine.

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. 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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants