Skip to content

Commit

Permalink
Revert error handling on export (cosmos#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe authored Oct 25, 2021
1 parent 161927c commit 465c085
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@ func (app *WasmApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs [

// 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 {
panic(err)
}
_, _ = app.distrKeeper.WithdrawValidatorCommission(ctx, val.GetOperator()) //nolint:errcheck
return false
})

Expand All @@ -91,10 +88,7 @@ func (app *WasmApp) prepForZeroHeightGenesis(ctx sdk.Context, jailAllowedAddrs [
if err != nil {
panic(err)
}
_, err = app.distrKeeper.WithdrawDelegationRewards(ctx, delAddr, valAddr)
if err != nil {
panic(err)
}
_, _ = app.distrKeeper.WithdrawDelegationRewards(ctx, delAddr, valAddr) //nolint:errcheck
}

// clear validator slash events
Expand Down

0 comments on commit 465c085

Please sign in to comment.