Skip to content

Commit

Permalink
remove query after patch (#256)
Browse files Browse the repository at this point in the history
Co-authored-by: hard-nett <[email protected]>
  • Loading branch information
hard-nett and hard-nett authored Dec 30, 2024
1 parent e49371a commit 56b91cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/upgrades/v020/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ func CreateV020UpgradeHandler(mm *module.Manager, configurator module.Configurat
}

// // confirm patch has been applied by querying rewards again for each delegation
for _, del := range k.StakingKeeper.GetAllDelegations(ctx) {
valAddr := del.GetValidatorAddr()
val := k.StakingKeeper.Validator(ctx, valAddr)
// calculate rewards
k.DistrKeeper.CalculateDelegationRewards(ctx, val, del, uint64(ctx.BlockHeight()))
}
// for _, del := range k.StakingKeeper.GetAllDelegations(ctx) {
// valAddr := del.GetValidatorAddr()
// val := k.StakingKeeper.Validator(ctx, valAddr)
// // calculate rewards
// k.DistrKeeper.CalculateDelegationRewards(ctx, val, del, uint64(ctx.BlockHeight()))
// }

ctx.Logger().Info(`
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Expand Down

0 comments on commit 56b91cd

Please sign in to comment.