Skip to content

Commit

Permalink
Revert "Increase the number of blocks to keep stale messages (#945)"
Browse files Browse the repository at this point in the history
This reverts commit 8ef8bd1.
  • Loading branch information
Tyler Ruppert authored and Tyler Ruppert committed Aug 14, 2023
1 parent f06dc50 commit df0a9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/consensus/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.Val
am.keeper.Logger(ctx).Error("error while attesting to messages", "err", err)
}

if ctx.BlockHeight()%50 == 0 {
err := am.keeper.DeleteOldMessages(ctx, 1200)
if ctx.BlockHeight()%10 == 0 {
err := am.keeper.DeleteOldMessages(ctx, 300)
if err != nil {
am.keeper.Logger(ctx).Error("error while deleting old messages", "err", err)
}
Expand Down

0 comments on commit df0a9a5

Please sign in to comment.