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

[Staking] Remove delays for bond_more #1044

Merged
merged 6 commits into from
Dec 2, 2021
Merged

Conversation

4meta5
Copy link
Contributor

@4meta5 4meta5 commented Dec 1, 2021

Removes the delay for {candidate, delegator}_bond_more so that the increase is executed immediately, like before #810

Rationale

Increasing stake is similar to joining {candidates, delegators} so no delay is necessary. The delay for bond_less is more consistent with the delay on {revoke, leave}

No migration necessary because #810 was never deployed to any networks

@4meta5 4meta5 changed the title [Staking [Staking] Remove delays for bond_more Dec 1, 2021
@4meta5 4meta5 added A0-pleasereview Pull request needs code review. A3-inprogress Pull request is in progress. No review needed at this stage. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes labels Dec 1, 2021
@4meta5 4meta5 removed the A3-inprogress Pull request is in progress. No review needed at this stage. label Dec 1, 2021
@@ -160,15 +158,9 @@ where
Action::ScheduleCandidateBondLess => {
Self::schedule_candidate_bond_less(input, context)?
}
// DEPRECATED
Copy link
Contributor

Choose a reason for hiding this comment

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

should these still be deprecated or were they not supposed to be deprecated in the first place?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is no longer deprecated because candidate_bond_more name and behavior did not change

@notlesh
Copy link
Contributor

notlesh commented Dec 1, 2021

I'm building on the benchmarking server to get proper weights, FYI

@crystalin crystalin merged commit 301ba00 into master Dec 2, 2021
@crystalin crystalin deleted the amar-remove-bond-more-delays branch December 2, 2021 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-pleasereview Pull request needs code review. B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants