Skip to content

Commit

Permalink
Remove checkTx skip
Browse files Browse the repository at this point in the history
  • Loading branch information
NotJeremyLiu committed Dec 20, 2022
1 parent c5bccf3 commit 1dced39
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/protorev/keeper/posthandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ func NewProtoRevDecorator(protoRevDecorator Keeper) ProtoRevDecorator {
// This posthandler will first check if there were any swaps in the tx. If so, collect all of the pools, build three
// pool routes for cyclic arbitrage, and then execute the optimal route if it exists.
func (protoRevDec ProtoRevDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error) {
if ctx.IsCheckTx() && !simulate {
return next(ctx, tx, simulate)
}

// Create a cache context to execute the posthandler such that
// 1. If there is an error, then the cache context is discarded
// 2. If there is no error, then the cache context is written to the main context
Expand Down

0 comments on commit 1dced39

Please sign in to comment.