add beforeUpgrade and afterUpgrade

This commit is contained in:
HaoyangLiu 2020-08-06 17:25:39 +08:00
parent 4450b337c4
commit 13cca06be8
2 changed files with 30 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -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)