diff --git a/x/participationrewards/keeper/rewards_validatorSelection.go b/x/participationrewards/keeper/rewards_validatorSelection.go index 9ac90df74..66e6ce24a 100644 --- a/x/participationrewards/keeper/rewards_validatorSelection.go +++ b/x/participationrewards/keeper/rewards_validatorSelection.go @@ -162,17 +162,13 @@ func (k Keeper) CalcOverallScores( rewards := delegatorRewards.GetRewards() if rewards == nil { - err := errors.New("no delegator rewards") - k.Logger(ctx).Error(err.Error()) - return err + return nil } total := delegatorRewards.GetTotal().AmountOf(zone.BaseDenom) if total.IsZero() { - err := errors.New("no delegator rewards (2)") - k.Logger(ctx).Error(err.Error()) - return err + return nil } expected := total.Quo(sdk.NewDec(int64(len(rewards)))) diff --git a/x/participationrewards/keeper/rewards_validatorSelection_test.go b/x/participationrewards/keeper/rewards_validatorSelection_test.go index 026c2b6d5..6937edda8 100644 --- a/x/participationrewards/keeper/rewards_validatorSelection_test.go +++ b/x/participationrewards/keeper/rewards_validatorSelection_test.go @@ -438,7 +438,7 @@ func (suite *KeeperTestSuite) TestCalcOverallScores() { }, verify: func(_ types.ZoneScore, _ []distributiontypes.DelegationDelegatorReward, _ []icstypes.Validator) { }, - wantErr: true, + wantErr: false, }, { name: "zero total rewards", @@ -454,7 +454,7 @@ func (suite *KeeperTestSuite) TestCalcOverallScores() { }, verify: func(_ types.ZoneScore, _ []distributiontypes.DelegationDelegatorReward, _ []icstypes.Validator) { }, - wantErr: true, + wantErr: false, }, { name: "validator removed from active set - performance greater than limit",