Skip to content

Commit

Permalink
disable x/auction endblocker
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Apr 18, 2024
1 parent 02441f4 commit 274cdc2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions x/auction/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}
// EndBlock executes all ABCI EndBlock logic respective to the x/auction module.
// It returns no validator updates.
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate {
k := am.kb.Keeper(&ctx)
if err := k.FinalizeRewardsAuction(); err != nil {
ctx.Logger().With("module", "x/auction").
Error("can't finalize rewards auction", "error", err)
}
// TODO: enable end blocker
// k := am.kb.Keeper(&ctx)
// if err := k.FinalizeRewardsAuction(); err != nil {
// ctx.Logger().With("module", "x/auction").
// Error("can't finalize rewards auction", "error", err)
// }

return []abci.ValidatorUpdate{}
}
Expand Down

0 comments on commit 274cdc2

Please sign in to comment.