From 6d650a4aa493b5632b392c2d3c43c3c9f081e45f Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Thu, 17 Mar 2022 11:05:22 -0400 Subject: [PATCH] lint++ --- ante/fee.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ante/fee.go b/ante/fee.go index bf3cebe2ea..87193216df 100644 --- a/ante/fee.go +++ b/ante/fee.go @@ -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()