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

Fix: Fix valset pref unbonding bugs (backport #5967) #6696

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 13, 2023

This is an automatic backport of pull request #5967 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

* Add helper to get existing delegations along with valset pref

* Lay out more of the logic nuance

* Add pseudo-code needed

* algorithm v1

* added algorithm docs

* fixed all test

* removed unwanted files

* remove more code

* added more tests

* update changelog

* added test and addressed feedback

* Update x/valset-pref/validator_set.go

* Update x/valset-pref/validator_set.go

* Update x/valset-pref/README.md

* Minor cleanup

* re-use validator gets

* Refactor

* Highlight bug

* fixed the issue

* added comments

* update changelog

* fixed the issue

* fixed go test

* fixed test

* lint

* Finish ValSet Pref Unbonding (#6630)

* Add Test cases and fix

* Update x/valset-pref/keeper.go

* Adams comment

* add error types and tidy test

---------

Co-authored-by: Adam Tucker <[email protected]>
Co-authored-by: Adam Tucker <[email protected]>

* feat: unbond with rebalanced val set weights (#6685)

* initial push

* add todo

* msg server test

* add godoc

* custom error

* update godoc

* update proto and remove duplication

* add more TODOs

* use min when calculating amt to withdraw from last val

* Update x/valset-pref/validator_set.go

---------

Co-authored-by: stackman27 <[email protected]>
Co-authored-by: devbot-wizard <[email protected]>
Co-authored-by: Adam Tucker <[email protected]>
Co-authored-by: roman <[email protected]>
Co-authored-by: Matt, Park <[email protected]>
Co-authored-by: Adam Tucker <[email protected]>
(cherry picked from commit e12011b)
@mergify mergify bot requested a review from mattverse as a code owner October 13, 2023 19:36
@github-actions github-actions bot added C:docs Improvements or additions to documentation C:CLI labels Oct 13, 2023
@czarcas7ic czarcas7ic merged commit f5acb01 into v20.x Oct 13, 2023
@czarcas7ic czarcas7ic deleted the mergify/bp/v20.x/pr-5967 branch October 13, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:CLI C:docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants