-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Backport) fix(x/authz)!: limit expired authz grant pruning to 200 per block #513
Changes from 2 commits
5e23284
910b67d
42b8220
155e7ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
// BeginBlocker is called at the beginning of every block | ||
func BeginBlocker(ctx sdk.Context, keeper keeper.Keeper) { | ||
// delete all the mature grants | ||
if err := keeper.DequeueAndDeleteExpiredGrants(ctx); err != nil { | ||
if err := keeper.DequeueAndDeleteExpiredGrants(ctx, 200); err != nil { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The addition of a |
||
panic(err) | ||
} | ||
} |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning