Skip to content

Commit

Permalink
set ante handler to lanes to prevent failed tx included again
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jun 10, 2024
1 parent 07dc766 commit 330014a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -915,23 +915,23 @@ func NewMinitiaApp(
app.SetMempool(mempool)
anteHandler := app.setAnteHandler(mevLane, freeLane)

// NOTE seems this optional, to reduce mempool logic cost
// skip this for now
//
// set the ante handler for each lane
//
// opt := []blockbase.LaneOption{
// blockbase.WithAnteHandler(anteHandler),
// }
// mevLane.WithOptions(
// opt...,
// )
// freeLane.(*blockbase.BaseLane).WithOptions(
// opt...,
// )
// defaultLane.(*blockbase.BaseLane).WithOptions(
// opt...,
// )
opt := []blockbase.LaneOption{
blockbase.WithAnteHandler(anteHandler),
}
systemLane.(*blockbase.BaseLane).WithOptions(
opt...,
)
mevLane.WithOptions(
opt...,
)
freeLane.(*blockbase.BaseLane).WithOptions(
opt...,
)
defaultLane.(*blockbase.BaseLane).WithOptions(
opt...,
)

// override the base-app's ABCI methods (CheckTx, PrepareProposal, ProcessProposal)
proposalHandlers := mevabci.NewProposalHandler(
Expand Down

0 comments on commit 330014a

Please sign in to comment.