Skip to content

Commit

Permalink
other nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Mar 18, 2024
1 parent 4d51ae6 commit 3252dd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integration/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,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)

Expand Down
1 change: 0 additions & 1 deletion x/ccv/provider/keeper/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,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))
Expand Down

0 comments on commit 3252dd7

Please sign in to comment.