Merge pull request #3032 from filecoin-project/feat/mpool-fix-capmaxfee

mpool: Fix capGasFee math again
This commit is contained in:
Jakub Sztandera 2020-08-13 14:47:46 +02:00 committed by GitHub
commit 91b5ec1aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ func capGasFee(msg *types.Message, maxFee abi.TokenAmount) {
return
}
gl := types.BigMul(msg.GasPremium, types.NewInt(uint64(msg.GasLimit)))
gl := types.NewInt(uint64(msg.GasLimit))
totalFee := types.BigMul(msg.GasFeeCap, gl)
minerFee := types.BigMul(msg.GasPremium, gl)