Skip to content

Commit

Permalink
Merge pull request #505 from mmsqe/align_export
Browse files Browse the repository at this point in the history
avoid fatal on no validator commission to withdraw
  • Loading branch information
cbrit authored Sep 30, 2024
2 parents c36490e + e9503b5 commit a743749
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions module/app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ func (app *Gravity) prepForZeroHeightGenesis(ctx sdk.Context, jailWhiteList []st

// withdraw all validator commission
app.stakingKeeper.IterateValidators(ctx, func(_ int64, val stakingtypes.ValidatorI) (stop bool) {
_, err := app.distrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator())
if err != nil {
log.Fatal(err)
}
_, _ = app.distrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator())
return false
})

Expand Down

0 comments on commit a743749

Please sign in to comment.