Skip to content

Commit

Permalink
distribute on block height 2 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Feb 15, 2024
1 parent bf8248c commit 3d55429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/distribution/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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 only allocate rewards for every multiple of 10 blocks for performance reasons.
if blockHeight > 1 && blockHeight%10 == 0 {
if (blockHeight > 1 && blockHeight%10 == 0) || blockHeight == 2 {
// determine the total power signing the block
var previousTotalPower int64
for _, voteInfo := range req.LastCommitInfo.GetVotes() {
Expand Down

0 comments on commit 3d55429

Please sign in to comment.