-
Notifications
You must be signed in to change notification settings - Fork 208
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
decrement terra delegations in progress by 3 in upgrade #1089
decrement terra delegations in progress by 3 in upgrade #1089
Conversation
// iterate the validators | ||
for _, val := range hostZone.GetValidators() { | ||
|
||
// subtract 3, flooring at 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check me that we should floor at 0
app/upgrades/v18/upgrades.go
Outdated
) error { | ||
|
||
// grab the terra host zone | ||
terra_chainid := "phoenix-1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check me that this should be hardcoded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful, just a couple nits!
// Decrement DelegationChangesInProgress on Terra vals by 3
// - Fetches terra host zone
// - Loops validators
// - Decrements each validator's DelegationChangeInProgress by 3