Skip to content

Commit

Permalink
remove special case for test
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Feb 15, 2024
1 parent 21ebd30 commit e35a038
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/distribution/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, k keeper.Keeper)
blockHeight := ctx.BlockHeight()
// only allocate rewards if the block height is greater than 1
// and for every multiple of 10 blocks for performance reasons.
// We special case blockHeight 2 to allow test cases to still be valid.
if (blockHeight > 1 && blockHeight%BlockMultipleToDistributeRewards == 0) || blockHeight == 2 {
if blockHeight > 1 && blockHeight%BlockMultipleToDistributeRewards == 0 {
// determine the total power signing the block
var previousTotalPower int64
for _, voteInfo := range req.LastCommitInfo.GetVotes() {
Expand Down

0 comments on commit e35a038

Please sign in to comment.