@@ -670,6 +670,7 @@ type ChainConfig struct {
670670 EuclidTime * uint64 `json:"euclidTime,omitempty"` // Euclid switch time (nil = no fork, 0 = already on euclid)
671671 EuclidV2Time * uint64 `json:"euclidv2Time,omitempty"` // EuclidV2 switch time (nil = no fork, 0 = already on euclidv2)
672672 FeynmanTime * uint64 `json:"feynmanTime,omitempty"` // Feynman switch time (nil = no fork, 0 = already on feynman)
673+ GalileoTime * uint64 `json:"galileoTime,omitempty"` // Galileo switch time (nil = no fork, 0 = already on galileo)
673674
674675 // TerminalTotalDifficulty is the amount of total difficulty reached by
675676 // the network that triggers the consensus upgrade.
@@ -1014,6 +1015,10 @@ func (c *ChainConfig) IsFeynman(now uint64) bool {
10141015 return isForkedTime (now , c .FeynmanTime )
10151016}
10161017
1018+ func (c * ChainConfig ) IsGalileo (now uint64 ) bool {
1019+ return isForkedTime (now , c .GalileoTime )
1020+ }
1021+
10171022// IsFeynmanTransitionBlock returns whether the given block timestamp corresponds to the first Feynman block.
10181023func (c * ChainConfig ) IsFeynmanTransitionBlock (blockTimestamp uint64 , parentTimestamp uint64 ) bool {
10191024 return isForkedTime (blockTimestamp , c .FeynmanTime ) && ! isForkedTime (parentTimestamp , c .FeynmanTime )
@@ -1247,7 +1252,7 @@ type Rules struct {
12471252 IsByzantium , IsConstantinople , IsPetersburg , IsIstanbul bool
12481253 IsBerlin , IsLondon , IsArchimedes , IsShanghai bool
12491254 IsBernoulli , IsCurie , IsDarwin , IsEuclid , IsEuclidV2 bool
1250- IsFeynman bool
1255+ IsFeynman , IsGalileo bool
12511256}
12521257
12531258// Rules ensures c's ChainID is not nil.
@@ -1276,5 +1281,6 @@ func (c *ChainConfig) Rules(num *big.Int, time uint64) Rules {
12761281 IsEuclid : c .IsEuclid (time ),
12771282 IsEuclidV2 : c .IsEuclidV2 (time ),
12781283 IsFeynman : c .IsFeynman (time ),
1284+ IsGalileo : c .IsGalileo (time ),
12791285 }
12801286}
0 commit comments