Skip to content

Commit

Permalink
lint++
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez committed Mar 17, 2022
1 parent 6901795 commit 6d650a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ante/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ func (mfd MempoolFeeDecorator) AnteHandle(
gas := feeTx.GetGas()
msgs := feeTx.GetMsgs()

// If this is a CheckTx. This is only for local mempool purposes, and thus
// is only ran on check tx.
// Only check for minimum fees if the execution mode is CheckTx and the tx does
// not contain oracle messages. If the tx does contain oracle messages, it's
// total gas must be less than or equal to a constant, otherwise minimum fees
// are checked.
if ctx.IsCheckTx() && !simulate &&
!(isOracleTx(msgs) && gas <= uint64(len(msgs))*MaxOracleMsgGasUsage) {
minGasPrices := ctx.MinGasPrices()
Expand Down

0 comments on commit 6d650a4

Please sign in to comment.