fix CalcBaseFee

This commit is contained in:
Ilnur Galiev 2020-11-03 16:44:08 +03:00
parent bd1b100c2f
commit b7e2d0aaa0

View File

@ -89,7 +89,7 @@ func CalcBaseFee(config *params.ChainConfig, parent *types.Header) *big.Int {
delta.Mul(parentBaseFee, gasDelta)
delta.Div(delta, parentGasTarget)
delta.Div(delta, feeDenominator)
feeDelta := math.BigMax(parentBaseFee, big.NewInt(1))
feeDelta := math.BigMax(delta, big.NewInt(1))
return new(big.Int).Add(parentBaseFee, feeDelta)
}