diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index 077c736926..270c5358dd 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -316,7 +316,7 @@ func (ethash *Ethash) CalcDifficulty(chain consensus.ChainReader, time uint64, p func CalcDifficulty(config *params.ChainConfig, time uint64, parent *types.Header) *big.Int { next := new(big.Int).Add(parent.Number, big1) switch { - case config.IsEip2384(next): + case config.IsMuirGlacier(next): return calcDifficultyEip2384(time, parent) case config.IsConstantinople(next): return calcDifficultyConstantinople(time, parent) diff --git a/params/config.go b/params/config.go index 62554cc8fb..9b3935bc90 100644 --- a/params/config.go +++ b/params/config.go @@ -384,8 +384,8 @@ func (c *ChainConfig) IsConstantinople(num *big.Int) bool { return isForked(c.ConstantinopleBlock, num) } -// IsEip2384 returns whether num is equal or greater than the EIP 2384 block -func (c *ChainConfig) IsEip2384(num *big.Int) bool { +// IsMuirGlacier returns whether num is either equal to the Muir Glacier (EIP-2384) fork block or greater. +func (c *ChainConfig) IsMuirGlacier(num *big.Int) bool { return isForked(c.EIP2384Block, num) }