Skip to content

Commit

Permalink
update: 120 blocks per batch
Browse files Browse the repository at this point in the history
  • Loading branch information
kstoykov committed Mar 1, 2022
1 parent ec4ab82 commit bed2c06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module/x/gravity/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ func createBatch(ctx sdk.Context, k keeper.Keeper) {
return
}

//create batches every 60 blocks
//create batches every 120 blocks
bh := uint64(ctx.BlockHeight())
if bh%60 != 0 {
ctx.Logger().Info(fmt.Sprintf("Next automatic batch will be created at height %d", bh+60-(bh%60)), "module", types.ModuleName, "action", "auto creation of batches")
if bh%120 != 0 {
ctx.Logger().Info(fmt.Sprintf("Next automatic batch will be created at height %d", bh+120-(bh%120)), "module", types.ModuleName, "action", "auto creation of batches")
return
}

Expand Down

0 comments on commit bed2c06

Please sign in to comment.