Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit a628eaa

Browse files
committed
Add goerli and ropsten Berlin block numbers
1 parent 406a743 commit a628eaa

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

eth/chains/goerli/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from eth_utils import decode_hex
22

33
from .constants import (
4+
BERLIN_GOERLI_BLOCK,
45
ISTANBUL_GOERLI_BLOCK,
56
PETERSBURG_GOERLI_BLOCK,
67
)
@@ -9,13 +10,15 @@
910

1011
from eth.rlp.headers import BlockHeader
1112
from eth.vm.forks import (
13+
BerlinVM,
1214
IstanbulVM,
1315
PetersburgVM,
1416
)
1517

1618
GOERLI_VM_CONFIGURATION = (
1719
(PETERSBURG_GOERLI_BLOCK, PetersburgVM),
1820
(ISTANBUL_GOERLI_BLOCK, IstanbulVM),
21+
(BERLIN_GOERLI_BLOCK, BerlinVM),
1922
)
2023

2124

eth/chains/goerli/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@
1414
# Istanbul
1515
#
1616
ISTANBUL_GOERLI_BLOCK = BlockNumber(1561651)
17+
18+
BERLIN_GOERLI_BLOCK = BlockNumber(4460644)

eth/chains/ropsten/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from eth_utils import decode_hex
44

55
from .constants import (
6+
BERLIN_ROPSTEN_BLOCK,
67
BYZANTIUM_ROPSTEN_BLOCK,
78
CONSTANTINOPLE_ROPSTEN_BLOCK,
89
ISTANBUL_ROPSTEN_BLOCK,
@@ -18,6 +19,7 @@
1819
from eth.chains.base import Chain
1920
from eth.rlp.headers import BlockHeader
2021
from eth.vm.forks import (
22+
BerlinVM,
2123
ByzantiumVM,
2224
ConstantinopleVM,
2325
IstanbulVM,
@@ -36,7 +38,8 @@
3638
(CONSTANTINOPLE_ROPSTEN_BLOCK, ConstantinopleVM),
3739
(PETERSBURG_ROPSTEN_BLOCK, PetersburgVM),
3840
(ISTANBUL_ROPSTEN_BLOCK, IstanbulVM),
39-
(MUIR_GLACIER_ROPSTEN_BLOCK, MuirGlacierVM)
41+
(MUIR_GLACIER_ROPSTEN_BLOCK, MuirGlacierVM),
42+
(BERLIN_ROPSTEN_BLOCK, BerlinVM),
4043
)
4144

4245

eth/chains/ropsten/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@
5757
# Muir Glacier Block
5858
#
5959
MUIR_GLACIER_ROPSTEN_BLOCK = BlockNumber(7117117)
60+
BERLIN_ROPSTEN_BLOCK = BlockNumber(9812189)

0 commit comments

Comments
 (0)