mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-05 10:12:19 +00:00
add beforeUpgrade and afterUpgrade
This commit is contained in:
parent
4450b337c4
commit
13cca06be8
File diff suppressed because one or more lines are too long
@ -444,6 +444,11 @@ func (c *ChainConfig) IsRamanujan(num *big.Int) bool {
|
||||
return isForked(c.RamanujanBlock, num)
|
||||
}
|
||||
|
||||
// IsOnRamanujan returns whether num is equal to the IsRamanujan fork block
|
||||
func (c *ChainConfig) IsOnRamanujan(num *big.Int) bool {
|
||||
return configNumEqual(c.RamanujanBlock, num)
|
||||
}
|
||||
|
||||
// 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.MuirGlacierBlock, num)
|
||||
|
Loading…
Reference in New Issue
Block a user