Skip to content

Commit 4a4a8f2

Browse files
authored
enable Constantinople fork in Ropsten chain (#1435)
1 parent 3aa9e34 commit 4a4a8f2

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

eth/chains/ropsten/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from .constants import (
55
BYZANTIUM_ROPSTEN_BLOCK,
6+
CONSTANTINOPLE_BLOCK,
67
ROPSTEN_CHAIN_ID,
78
SPURIOUS_DRAGON_ROPSTEN_BLOCK,
89
TANGERINE_WHISTLE_ROPSTEN_BLOCK,
@@ -14,6 +15,7 @@
1415
from eth.vm.base import BaseVM # noqa: F401
1516
from eth.vm.forks import (
1617
ByzantiumVM,
18+
ConstantinopleVM,
1719
SpuriousDragonVM,
1820
TangerineWhistleVM,
1921
)
@@ -24,6 +26,7 @@
2426
(TANGERINE_WHISTLE_ROPSTEN_BLOCK, TangerineWhistleVM),
2527
(SPURIOUS_DRAGON_ROPSTEN_BLOCK, SpuriousDragonVM),
2628
(BYZANTIUM_ROPSTEN_BLOCK, ByzantiumVM),
29+
(CONSTANTINOPLE_BLOCK, ConstantinopleVM),
2730
)
2831

2932

eth/chains/ropsten/constants.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
# Fork Blocks listed in ascending order
55

6-
#
7-
# Byzantium Block
8-
#
9-
BYZANTIUM_ROPSTEN_BLOCK = 1700000
10-
11-
126
#
137
# DAO Block
148
#
@@ -31,3 +25,15 @@
3125
# Spurious Dragon Block
3226
#
3327
SPURIOUS_DRAGON_ROPSTEN_BLOCK = 10
28+
29+
30+
#
31+
# Byzantium Block
32+
#
33+
BYZANTIUM_ROPSTEN_BLOCK = 1700000
34+
35+
36+
#
37+
# Constantinople
38+
#
39+
CONSTANTINOPLE_BLOCK = 4230000

0 commit comments

Comments
 (0)