Ver Fonte

add beforeUpgrade and afterUpgrade

HaoyangLiu há 5 anos atrás
pai
commit
13cca06be8

Diff do ficheiro suprimidas por serem muito extensas
+ 8 - 5
core/systemcontractupgrade/system-contract-upgrade.go


+ 5 - 0
params/config.go

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

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff