@@ -46,13 +46,13 @@ var (
46
46
big .NewInt (0 ),
47
47
big .NewInt (0 ),
48
48
big .NewInt (0 ),
49
- big .NewInt (0 ),
50
49
nil , nil , nil , nil ,
51
50
big .NewInt (0 ),
52
51
big .NewInt (0 ),
53
52
big .NewInt (0 ),
54
53
big .NewInt (0 ),
55
54
big .NewInt (0 ),
55
+ big .NewInt (0 ),
56
56
nil ,
57
57
nil ,
58
58
nil ,
@@ -77,14 +77,14 @@ var (
77
77
big .NewInt (0 ),
78
78
big .NewInt (0 ),
79
79
big .NewInt (0 ),
80
- big .NewInt (0 ),
81
80
nil , nil , nil , nil ,
82
81
big .NewInt (0 ),
83
82
big .NewInt (0 ),
84
83
big .NewInt (0 ),
85
84
big .NewInt (0 ),
86
85
big .NewInt (0 ),
87
- nil ,
86
+ big .NewInt (0 ),
87
+ big .NewInt (0 ),
88
88
& CliqueConfig {Period : 0 , Epoch : 30000 },
89
89
nil ,
90
90
}
@@ -103,13 +103,13 @@ var (
103
103
big .NewInt (0 ),
104
104
big .NewInt (0 ),
105
105
big .NewInt (0 ),
106
- big .NewInt (0 ),
107
106
nil , nil , nil , nil ,
108
107
big .NewInt (0 ),
109
108
big .NewInt (0 ),
110
109
big .NewInt (0 ),
111
110
big .NewInt (0 ),
112
111
big .NewInt (0 ),
112
+ big .NewInt (0 ),
113
113
nil ,
114
114
nil , nil ,
115
115
}
@@ -179,7 +179,6 @@ type ChainConfig struct {
179
179
180
180
EIP155Block * big.Int `json:"eip155Block,omitempty"` // EIP155 HF block
181
181
EIP158Block * big.Int `json:"eip158Block,omitempty"` // EIP158 HF block
182
- EIP3860Block * big.Int `json:"eip3860Block,omitempty"` // EIP3860 HF block
183
182
ByzantiumBlock * big.Int `json:"byzantiumBlock,omitempty"` // Byzantium switch block (nil = no fork, 0 = already on byzantium)
184
183
ConstantinopleBlock * big.Int `json:"constantinopleBlock,omitempty"` // Constantinople switch block (nil = no fork, 0 = already activated)
185
184
PetersburgBlock * big.Int `json:"petersburgBlock,omitempty"` // Petersburg switch block (nil = same as Constantinople)
@@ -198,9 +197,9 @@ type ChainConfig struct {
198
197
NielsBlock * big.Int `json:"nielsBlock,omitempty" toml:",omitempty"` // nielsBlock switch block (nil = no fork, 0 = already activated)
199
198
MirrorSyncBlock * big.Int `json:"mirrorSyncBlock,omitempty" toml:",omitempty"` // mirrorSyncBlock switch block (nil = no fork, 0 = already activated)
200
199
BrunoBlock * big.Int `json:"brunoBlock,omitempty" toml:",omitempty"` // brunoBlock switch block (nil = no fork, 0 = already activated)
201
- Fncy2Block * big.Int `json:"fncy2Block,omitempty" toml:",omitempty"` // fncy2Block switch block (nil = no fork, 0 = already activated)
202
200
BlockRewardsBlock * big.Int `json:"blockRewardsBlock,omitempty" toml:",omitempty"`
203
-
201
+ Contract48kBlock * big.Int `json:"contract48kBlock,omitempty" toml:",omitempty"` // contract48kBlock switch block (nil = no fork, 0 = already activated)
202
+ Fncy2Block * big.Int `json:"fncy2Block,omitempty" toml:",omitempty"` // fncy2Block switch block (nil = no fork, 0 = already activated)
204
203
// Various consensus engines
205
204
Clique * CliqueConfig `json:"clique,omitempty" toml:",omitempty"`
206
205
Parlia * ParliaConfig `json:"parlia,omitempty" toml:",omitempty"`
@@ -282,8 +281,8 @@ func (c *ChainConfig) IsEIP158(num *big.Int) bool {
282
281
return isForked (c .EIP158Block , num )
283
282
}
284
283
285
- func (c * ChainConfig ) IsEIP3860 (num * big.Int ) bool {
286
- return isForked (c .EIP3860Block , num )
284
+ func (c * ChainConfig ) IsContract48kBlock (num * big.Int ) bool {
285
+ return isForked (c .Contract48kBlock , num )
287
286
}
288
287
func (c * ChainConfig ) IsFncy2 (num * big.Int ) bool {
289
288
return isForked (c .Fncy2Block , num )
@@ -553,12 +552,12 @@ func (err *ConfigCompatError) Error() string {
553
552
// Rules is a one time interface meaning that it shouldn't be used in between transition
554
553
// phases.
555
554
type Rules struct {
556
- ChainID * big.Int
557
- IsHomestead , IsEIP150 , IsEIP155 , IsEIP158 , IsEIP3860 bool
558
- IsByzantium , IsConstantinople , IsPetersburg , IsIstanbul bool
559
- IsBerlin , IsCatalyst bool
560
- HasRuntimeUpgrade , HasDeployerProxy bool
561
- HasBlockRewards bool
555
+ ChainID * big.Int
556
+ IsHomestead , IsEIP150 , IsEIP155 , IsEIP158 , IsContract48kBlock bool
557
+ IsByzantium , IsConstantinople , IsPetersburg , IsIstanbul bool
558
+ IsBerlin , IsCatalyst bool
559
+ HasRuntimeUpgrade , HasDeployerProxy bool
560
+ HasBlockRewards bool
562
561
}
563
562
564
563
// Rules ensures c's ChainID is not nil.
@@ -568,20 +567,20 @@ func (c *ChainConfig) Rules(num *big.Int) Rules {
568
567
chainID = new (big.Int )
569
568
}
570
569
return Rules {
571
- ChainID : new (big.Int ).Set (chainID ),
572
- IsHomestead : c .IsHomestead (num ),
573
- IsEIP150 : c .IsEIP150 (num ),
574
- IsEIP155 : c .IsEIP155 (num ),
575
- IsEIP158 : c .IsEIP158 (num ),
576
- IsEIP3860 : c . IsEIP3860 (num ),
577
- IsByzantium : c .IsByzantium (num ),
578
- IsConstantinople : c .IsConstantinople (num ),
579
- IsPetersburg : c .IsPetersburg (num ),
580
- IsIstanbul : c .IsIstanbul (num ),
581
- IsBerlin : c .IsBerlin (num ),
582
- IsCatalyst : c .IsCatalyst (num ),
583
- HasRuntimeUpgrade : c .HasRuntimeUpgrade (num ),
584
- HasDeployerProxy : c .HasDeployerProxy (num ),
585
- HasBlockRewards : c .IsBlockRewardsBlock (num ),
570
+ ChainID : new (big.Int ).Set (chainID ),
571
+ IsHomestead : c .IsHomestead (num ),
572
+ IsEIP150 : c .IsEIP150 (num ),
573
+ IsEIP155 : c .IsEIP155 (num ),
574
+ IsEIP158 : c .IsEIP158 (num ),
575
+ IsContract48kBlock : c . IsContract48kBlock (num ),
576
+ IsByzantium : c .IsByzantium (num ),
577
+ IsConstantinople : c .IsConstantinople (num ),
578
+ IsPetersburg : c .IsPetersburg (num ),
579
+ IsIstanbul : c .IsIstanbul (num ),
580
+ IsBerlin : c .IsBerlin (num ),
581
+ IsCatalyst : c .IsCatalyst (num ),
582
+ HasRuntimeUpgrade : c .HasRuntimeUpgrade (num ),
583
+ HasDeployerProxy : c .HasDeployerProxy (num ),
584
+ HasBlockRewards : c .IsBlockRewardsBlock (num ),
586
585
}
587
586
}
0 commit comments