forked from cerc-io/plugeth
Merge remote-tracking branch 'origin/feature/etc-plugin-miner' into feature/network-etc-miner
This commit is contained in:
+7
-3
@@ -558,10 +558,14 @@ func (c *ChainConfig) IsTerminalPoWBlock(parentTotalDiff *big.Int, totalDiff *bi
|
||||
return parentTotalDiff.Cmp(c.TerminalTotalDifficulty) < 0 && totalDiff.Cmp(c.TerminalTotalDifficulty) >= 0
|
||||
}
|
||||
|
||||
// begin Plugeth injection -- the following code is being commented to enable network plugins to initiate the shanghai fork
|
||||
|
||||
// IsShanghai returns whether time is either equal to the Shanghai fork time or greater.
|
||||
func (c *ChainConfig) IsShanghai(num *big.Int, time uint64) bool {
|
||||
return c.IsLondon(num) && isTimestampForked(c.ShanghaiTime, time)
|
||||
}
|
||||
// func (c *ChainConfig) IsShanghai(num *big.Int, time uint64) bool {
|
||||
// return c.IsLondon(num) && isTimestampForked(c.ShanghaiTime, time)
|
||||
// }
|
||||
|
||||
// end PluGeth injection
|
||||
|
||||
// IsCancun returns whether num is either equal to the Cancun fork time or greater.
|
||||
func (c *ChainConfig) IsCancun(num *big.Int, time uint64) bool {
|
||||
|
||||
Reference in New Issue
Block a user