aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Holst Swende <martin@swende.se>2019-08-23 16:01:09 +0800
committerMartin Holst Swende <martin@swende.se>2019-08-23 16:01:09 +0800
commit4aeeddc6586ec2d405e1c67ee22cd367d805368b (patch)
treee8ab40ff2076919c03379f6cd7dda83e06d214c2
parente126b0836a06bc3c2f52a5940a09f0ed74134b6b (diff)
downloadgo-tangerine-4aeeddc6586ec2d405e1c67ee22cd367d805368b.tar
go-tangerine-4aeeddc6586ec2d405e1c67ee22cd367d805368b.tar.gz
go-tangerine-4aeeddc6586ec2d405e1c67ee22cd367d805368b.tar.bz2
go-tangerine-4aeeddc6586ec2d405e1c67ee22cd367d805368b.tar.lz
go-tangerine-4aeeddc6586ec2d405e1c67ee22cd367d805368b.tar.xz
go-tangerine-4aeeddc6586ec2d405e1c67ee22cd367d805368b.tar.zst
go-tangerine-4aeeddc6586ec2d405e1c67ee22cd367d805368b.zip
tests: implement Istanbul support
-rw-r--r--tests/init.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/init.go b/tests/init.go
index f9af5c0ca..a18e12bdd 100644
--- a/tests/init.go
+++ b/tests/init.go
@@ -75,6 +75,18 @@ var Forks = map[string]*params.ChainConfig{
ConstantinopleBlock: big.NewInt(0),
PetersburgBlock: big.NewInt(0),
},
+ "Istanbul": {
+ ChainID: big.NewInt(1),
+ HomesteadBlock: big.NewInt(0),
+ EIP150Block: big.NewInt(0),
+ EIP155Block: big.NewInt(0),
+ EIP158Block: big.NewInt(0),
+ DAOForkBlock: big.NewInt(0),
+ ByzantiumBlock: big.NewInt(0),
+ ConstantinopleBlock: big.NewInt(0),
+ PetersburgBlock: big.NewInt(0),
+ IstanbulBlock: big.NewInt(0),
+ },
"FrontierToHomesteadAt5": {
ChainID: big.NewInt(1),
HomesteadBlock: big.NewInt(5),
@@ -117,6 +129,17 @@ var Forks = map[string]*params.ChainConfig{
ConstantinopleBlock: big.NewInt(5),
PetersburgBlock: big.NewInt(5),
},
+ "ConstantinopleFixToIstanbulAt5": {
+ ChainID: big.NewInt(1),
+ HomesteadBlock: big.NewInt(0),
+ EIP150Block: big.NewInt(0),
+ EIP155Block: big.NewInt(0),
+ EIP158Block: big.NewInt(0),
+ ByzantiumBlock: big.NewInt(0),
+ ConstantinopleBlock: big.NewInt(0),
+ PetersburgBlock: big.NewInt(0),
+ IstanbulBlock: big.NewInt(5),
+ },
}
// UnsupportedForkError is returned when a test requests a fork that isn't implemented.