Skip to content

Commit

Permalink
auto-gc unbonding records
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Bowman authored and joe-bowman committed Jan 30, 2025
1 parent 9e4a909 commit 906c027
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/interchainstaking/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ func (k *Keeper) BeginBlocker(ctx sdk.Context) {
if err := k.GCCompletedRedelegations(ctx); err != nil {
k.Logger(ctx).Error("error in GCCompletedRedelegations", "error", err)
}

// k.HandleMaturedUnbondings(ctx)
k.HandleMaturedUnbondings(ctx)
}

k.IterateZones(ctx, func(index int64, zone *types.Zone) (stop bool) {
if ctx.BlockHeight()%30 == 0 {
if ctx.BlockHeight()%blockInterval == 0 {
// for the tasks below, we cannot panic in begin blocker; as this will crash the chain.
// and as failing here is not terminal panicking is not necessary, but we should log
// as an error. we don't return on failure here as we still want to attempt the unrelated
Expand Down

0 comments on commit 906c027

Please sign in to comment.