Skip to content

Commit

Permalink
mpool: Fix CapGasFee maxFee handling
Browse files Browse the repository at this point in the history
Co-authored-by: Aayush Rajasekaran <[email protected]>
  • Loading branch information
magik6k and arajasek authored Oct 11, 2023
1 parent 00aad34 commit 861134d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chain/messagepool/messagepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func CapGasFee(mff dtypes.DefaultMaxFeeFunc, msg *types.Message, sendSpec *api.M

gaslimit := types.NewInt(uint64(msg.GasLimit))
totalFee := types.BigMul(msg.GasFeeCap, gaslimit)
if !maximizeFeeCap && totalFee.GreaterThan(maxFee) {
if maximizeFeeCap || totalFee.GreaterThan(maxFee) {
msg.GasFeeCap = big.Div(maxFee, gaslimit)
}

Expand Down

0 comments on commit 861134d

Please sign in to comment.