cosmos-sdk/x/authz/module/abci.go
2024-01-13 20:42:45 +00:00

15 lines
352 B
Go

package module
import (
"context"
"cosmossdk.io/x/authz/keeper"
)
// BeginBlocker is called at the beginning of every block
func BeginBlocker(ctx context.Context, keeper keeper.Keeper) error {
// delete all the mature grants
// 200 is an arbitrary value, we can change it later if needed
return keeper.DequeueAndDeleteExpiredGrants(ctx, 200)
}