This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Expand file tree Collapse file tree 5 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1313from .constants import (
1414 MAINNET_CHAIN_ID ,
1515 BYZANTIUM_MAINNET_BLOCK ,
16- CONSTANTINOPLE_MAINNET_BLOCK ,
16+ PETERSBURG_MAINNET_BLOCK ,
1717 TANGERINE_WHISTLE_MAINNET_BLOCK ,
1818 HOMESTEAD_MAINNET_BLOCK ,
1919 SPURIOUS_DRAGON_MAINNET_BLOCK ,
2929from eth .vm .base import BaseVM # noqa: F401
3030from eth .vm .forks import (
3131 ByzantiumVM ,
32- ConstantinopleVM ,
3332 FrontierVM ,
3433 HomesteadVM ,
34+ PetersburgVM ,
3535 SpuriousDragonVM ,
3636 TangerineWhistleVM ,
3737)
@@ -80,15 +80,15 @@ class MainnetHomesteadVM(MainnetDAOValidatorVM):
8080 TANGERINE_WHISTLE_MAINNET_BLOCK ,
8181 SPURIOUS_DRAGON_MAINNET_BLOCK ,
8282 BYZANTIUM_MAINNET_BLOCK ,
83- CONSTANTINOPLE_MAINNET_BLOCK ,
83+ PETERSBURG_MAINNET_BLOCK ,
8484)
8585MAINNET_VMS = (
8686 FrontierVM ,
8787 MainnetHomesteadVM ,
8888 TangerineWhistleVM ,
8989 SpuriousDragonVM ,
9090 ByzantiumVM ,
91- ConstantinopleVM ,
91+ PetersburgVM ,
9292)
9393
9494MAINNET_VM_CONFIGURATION = tuple (zip (MAINNET_FORK_BLOCKS , MAINNET_VMS ))
Original file line number Diff line number Diff line change 3939BYZANTIUM_MAINNET_BLOCK = BlockNumber (4370000 )
4040
4141#
42- # Constantinople Block
42+ # Petersburg Block
4343#
44- CONSTANTINOPLE_MAINNET_BLOCK = BlockNumber (9876543210 )
44+ PETERSBURG_MAINNET_BLOCK = BlockNumber (7280000 )
Original file line number Diff line number Diff line change 44from .constants import (
55 BYZANTIUM_ROPSTEN_BLOCK ,
66 CONSTANTINOPLE_ROPSTEN_BLOCK ,
7+ PETERSBURG_ROPSTEN_BLOCK ,
78 ROPSTEN_CHAIN_ID ,
89 SPURIOUS_DRAGON_ROPSTEN_BLOCK ,
910 TANGERINE_WHISTLE_ROPSTEN_BLOCK ,
1617from eth .vm .forks import (
1718 ByzantiumVM ,
1819 ConstantinopleVM ,
20+ PetersburgVM ,
1921 SpuriousDragonVM ,
2022 TangerineWhistleVM ,
2123)
2729 (SPURIOUS_DRAGON_ROPSTEN_BLOCK , SpuriousDragonVM ),
2830 (BYZANTIUM_ROPSTEN_BLOCK , ByzantiumVM ),
2931 (CONSTANTINOPLE_ROPSTEN_BLOCK , ConstantinopleVM ),
32+ (PETERSBURG_ROPSTEN_BLOCK , PetersburgVM ),
3033)
3134
3235
Original file line number Diff line number Diff line change 4040# Constantinople
4141#
4242CONSTANTINOPLE_ROPSTEN_BLOCK = BlockNumber (4230000 )
43+
44+
45+ #
46+ # Petersburg
47+ #
48+ PETERSBURG_ROPSTEN_BLOCK = BlockNumber (9999999 )
Original file line number Diff line number Diff line change 1616from .constantinople import ( # noqa: F401
1717 ConstantinopleVM ,
1818)
19+ from .petersburg import ( # noqa: F401
20+ PetersburgVM ,
21+ )
You can’t perform that action at this time.
0 commit comments