mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
consensus/misc/eip1559: use baseFeeDenominator from config
This commit is contained in:
parent
4bd7f2309d
commit
4e8988d8b0
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ func CalcBaseFee(config *params.ChainConfig, parent *types.Header) *big.Int {
|
|||
num.SetUint64(parentGasTarget - parent.GasUsed)
|
||||
num.Mul(num, parent.BaseFee)
|
||||
num.Div(num, denom.SetUint64(parentGasTarget))
|
||||
num.Div(num, denom.SetUint64(config.BaseFeeChangeDenominator()))
|
||||
num.Div(num, denom.SetUint64(baseFeeChangeDenominatorUint64))
|
||||
|
||||
baseFee := num.Sub(parent.BaseFee, num)
|
||||
if baseFee.Cmp(common.Big0) < 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue