Skip to content

Commit

Permalink
optimism: make eip1559 configurable (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
protolambda committed Nov 4, 2022
1 parent 121e803 commit 2a4abfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -730,11 +730,17 @@ func (c *ChainConfig) checkCompatible(newcfg *ChainConfig, head *big.Int) *Confi

// BaseFeeChangeDenominator bounds the amount the base fee can change between blocks.
func (c *ChainConfig) BaseFeeChangeDenominator() uint64 {
if c.Optimism != nil {
return c.Optimism.EIP1559Denominator
}
return DefaultBaseFeeChangeDenominator
}

// ElasticityMultiplier bounds the maximum gas limit an EIP-1559 block may have.
func (c *ChainConfig) ElasticityMultiplier() uint64 {
if c.Optimism != nil {
return c.Optimism.EIP1559Elasticity
}
return DefaultElasticityMultiplier
}

Expand Down

0 comments on commit 2a4abfa

Please sign in to comment.