Skip to content

Commit

Permalink
Merge branch 'dadams/pre_rc10_adjustments' of github.com:provenance-i…
Browse files Browse the repository at this point in the history
…o/provenance into dadams/pre_rc10_adjustments
  • Loading branch information
arnabmitra committed Mar 8, 2022
2 parents b780c82 + 23e5e3d commit 850395e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions internal/antewrapper/tx_gas_limit_decorator.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import (
// CONTRACT: Tx must implement FeeTx to use TxGasLimitDecorator
type TxGasLimitDecorator struct{}

// MinTxPerBlock is used to determine the maximum amount of gas that any given transaction can use based on the block gas limit.
const MinTxPerBlock = 15

func NewTxGasLimitDecorator() TxGasLimitDecorator {
return TxGasLimitDecorator{}
}
Expand All @@ -27,10 +24,7 @@ func (mfd TxGasLimitDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate b
}
// Ensure that the requested gas does not exceed the configured block maximum
gas := feeTx.GetGas()
gasTxLimit := uint64(0)
if ctx.BlockGasMeter() != nil {
gasTxLimit = ctx.BlockGasMeter().Limit() / MinTxPerBlock
}
gasTxLimit := uint64(4_000_000)

// Skip gas limit check for txs with MsgSubmitProposal
hasSubmitPropMsg := false
Expand Down

0 comments on commit 850395e

Please sign in to comment.