Skip to content

Commit

Permalink
hard coded min gas to zero
Browse files Browse the repository at this point in the history
Co-authored-by: sampocs <[email protected]>
  • Loading branch information
assafmo and sampocs committed Dec 11, 2024
1 parent b209c00 commit 2ce269b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/txfees/keeper/feedecorator.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ func (mfd MempoolFeeDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate b
}

func (mfd MempoolFeeDecorator) getMinBaseGasPrice(ctx sdk.Context, baseDenom string, simulate bool, feeTx sdk.FeeTx) osmomath.Dec {
return osmomath.ZeroDec()
// In block execution (DeliverTx), its set to the governance decided upon consensus min fee.
minBaseGasPrice := types.ConsensusMinFee
// If we are in CheckTx, a separate function is ran locally to ensure sufficient fees for entering our mempool.
Expand Down Expand Up @@ -203,7 +204,7 @@ func (k Keeper) IsSufficientFee(ctx sdk.Context, minBaseGasPrice osmomath.Dec, g
}

func (mfd MempoolFeeDecorator) GetMinBaseGasPriceForTx(ctx sdk.Context, baseDenom string, tx sdk.FeeTx) osmomath.Dec {
var is1559enabled = mfd.Opts.Mempool1559Enabled
is1559enabled := mfd.Opts.Mempool1559Enabled

cfgMinGasPrice := ctx.MinGasPrices().AmountOf(baseDenom)
// the check below prevents tx gas from getting over HighGasTxThreshold which is default to 1_000_000
Expand Down

0 comments on commit 2ce269b

Please sign in to comment.