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

decrement terra delegations in progress by 3 in upgrade #1089

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

riley-stride
Copy link
Contributor

// Decrement DelegationChangesInProgress on Terra vals by 3
// - Fetches terra host zone
// - Loops validators
// - Decrements each validator's DelegationChangeInProgress by 3

@riley-stride riley-stride requested a review from sampocs January 26, 2024 06:57
// iterate the validators
for _, val := range hostZone.GetValidators() {

// subtract 3, flooring at 0
Copy link
Contributor Author

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

) error {

// grab the terra host zone
terra_chainid := "phoenix-1"
Copy link
Contributor Author

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

Copy link
Collaborator

@sampocs sampocs left a 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!

app/upgrades/v18/upgrades.go Outdated Show resolved Hide resolved
app/upgrades/v18/upgrades.go Outdated Show resolved Hide resolved
app/upgrades/v18/upgrades.go Outdated Show resolved Hide resolved
app/upgrades/v18/upgrades.go Show resolved Hide resolved
app/upgrades/v18/upgrades_test.go Outdated Show resolved Hide resolved
@sampocs sampocs merged commit 51eb82b into v18-upgrade-migrations Jan 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants