Skip to content

Commit ba292b2

Browse files
MariusVanDerWijdenkaralabe
authored andcommitted
params: nitpicks
1 parent aa3a75f commit ba292b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

params/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,9 @@ func (c *ChainConfig) IsTerminalPoWBlock(parentTotalDiff *big.Int, totalDiff *bi
567567
return parentTotalDiff.Cmp(c.TerminalTotalDifficulty) < 0 && totalDiff.Cmp(c.TerminalTotalDifficulty) >= 0
568568
}
569569

570-
// IsShanghai returns whether num is either equal to the Shanghai fork block or greater.
571-
func (c *ChainConfig) IsShanghai(num *big.Int) bool {
572-
return isForked(c.ShanghaiTime, num)
570+
// IsShanghai returns whether time is either equal to the Shanghai fork time or greater.
571+
func (c *ChainConfig) IsShanghai(time *big.Int) bool {
572+
return isForked(c.ShanghaiTime, time)
573573
}
574574

575575
// IsCancun returns whether num is either equal to the Cancun fork block or greater.

0 commit comments

Comments
 (0)