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

[MOON-1745] re-add status Leaving as deprecated #1702

Merged
merged 3 commits into from
Jul 21, 2022

Conversation

nbaztec
Copy link
Contributor

@nbaztec nbaztec commented Jul 21, 2022

What does it do?

Re-adds DelegationStatus::Leaving as a deprecated variant. This fixes decode problems for any delegators containing the old variant in their status field under the DelegatorState storage.

schedule_leave_delegators, cancel_leave_delegators & execute_leave_delegators will now infallibly update the DelegatorStatus::Leaving to DelegatorStatus::Active if encountered.

What important points reviewers should know?

Is there something left for follow-up PRs?

What alternative implementations were considered?

Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?

What value does it bring to the blockchain users?

@nbaztec nbaztec added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Jul 21, 2022
@crystalin crystalin mentioned this pull request Jul 21, 2022
12 tasks
@crystalin crystalin merged commit 6a1e569 into master Jul 21, 2022
@crystalin crystalin deleted the nish-cherry-pick-leaving branch July 21, 2022 18:06
crystalin pushed a commit that referenced this pull request Jul 21, 2022
* merge master

* fix tests

* fix toJSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants