Skip to content

Commit 4aeeddc

Browse files
committed
tests: implement Istanbul support
1 parent e126b08 commit 4aeeddc

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/init.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ var Forks = map[string]*params.ChainConfig{
7575
ConstantinopleBlock: big.NewInt(0),
7676
PetersburgBlock: big.NewInt(0),
7777
},
78+
"Istanbul": {
79+
ChainID: big.NewInt(1),
80+
HomesteadBlock: big.NewInt(0),
81+
EIP150Block: big.NewInt(0),
82+
EIP155Block: big.NewInt(0),
83+
EIP158Block: big.NewInt(0),
84+
DAOForkBlock: big.NewInt(0),
85+
ByzantiumBlock: big.NewInt(0),
86+
ConstantinopleBlock: big.NewInt(0),
87+
PetersburgBlock: big.NewInt(0),
88+
IstanbulBlock: big.NewInt(0),
89+
},
7890
"FrontierToHomesteadAt5": {
7991
ChainID: big.NewInt(1),
8092
HomesteadBlock: big.NewInt(5),
@@ -117,6 +129,17 @@ var Forks = map[string]*params.ChainConfig{
117129
ConstantinopleBlock: big.NewInt(5),
118130
PetersburgBlock: big.NewInt(5),
119131
},
132+
"ConstantinopleFixToIstanbulAt5": {
133+
ChainID: big.NewInt(1),
134+
HomesteadBlock: big.NewInt(0),
135+
EIP150Block: big.NewInt(0),
136+
EIP155Block: big.NewInt(0),
137+
EIP158Block: big.NewInt(0),
138+
ByzantiumBlock: big.NewInt(0),
139+
ConstantinopleBlock: big.NewInt(0),
140+
PetersburgBlock: big.NewInt(0),
141+
IstanbulBlock: big.NewInt(5),
142+
},
120143
}
121144

122145
// UnsupportedForkError is returned when a test requests a fork that isn't implemented.

0 commit comments

Comments
 (0)