diff --git a/tests/integration/distribution.go b/tests/integration/distribution.go index 129ae1d669..a2bd51067f 100644 --- a/tests/integration/distribution.go +++ b/tests/integration/distribution.go @@ -149,7 +149,7 @@ func (s *CCVTestSuite) TestRewardsDistribution() { 1, ) - // Check that the consumer rewards allocation are empty since relayAllCommittedPackets call BeginBlock + // Check that the consumer rewards allocation are empty since relayAllCommittedPackets call BeginBlockRD rewardsAlloc := providerKeeper.GetConsumerRewardsAllocation(s.providerCtx(), s.consumerChain.ChainID) s.Require().Empty(rewardsAlloc.Rewards) diff --git a/x/ccv/provider/keeper/distribution.go b/x/ccv/provider/keeper/distribution.go index ecf0beb88e..fd5a7010d6 100644 --- a/x/ccv/provider/keeper/distribution.go +++ b/x/ccv/provider/keeper/distribution.go @@ -143,7 +143,6 @@ func (k Keeper) AllocateTokensToConsumerValidators( } for _, val := range k.GetConsumerValSet(ctx, chainID) { - // TODO: should check if validator IsOptIn or continue here consAddr := sdk.ConsAddress(val.ProviderConsAddr) powerFraction := math.LegacyNewDec(val.Power).QuoTruncate(math.LegacyNewDec(totalPower))