Skip to content

Commit 0217c1c

Browse files
committed
Add Berlin tests, disabled in CI
It doesn't make sense to turn them on until most of the EIPs are implemented.
1 parent 3ce7ec3 commit 0217c1c

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
- image: circleci/python:3.6
4747
environment:
4848
TOXENV: py36-benchmark
49+
py36-native-blockchain-berlin:
50+
<<: *common
51+
docker:
52+
- image: circleci/python:3.6
53+
environment:
54+
TOXENV: py36-native-blockchain-berlin
4955
py36-native-blockchain-byzantium:
5056
<<: *common
5157
docker:

eth/tools/fixtures/helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
HomesteadVM as BaseHomesteadVM,
4747
SpuriousDragonVM,
4848
IstanbulVM,
49+
BerlinVM,
4950
)
5051

5152

@@ -126,6 +127,10 @@ def chain_vm_configuration(fixture: Dict[str, Any]) -> Iterable[Tuple[int, Type[
126127
return (
127128
(0, IstanbulVM),
128129
)
130+
elif network == 'Berlin':
131+
return (
132+
(0, BerlinVM),
133+
)
129134
elif network == 'FrontierToHomesteadAt5':
130135
HomesteadVM = BaseHomesteadVM.configure(support_dao_fork=False)
131136
return (

eth/vm/forks/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@
2525
from .muir_glacier import ( # noqa: F401
2626
MuirGlacierVM,
2727
)
28+
from .berlin import ( # noqa: F401
29+
BerlinVM,
30+
)

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ commands=
3434
native-blockchain-constantinople: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Constantinople}
3535
native-blockchain-petersburg: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork ConstantinopleFix}
3636
native-blockchain-istanbul: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Istanbul}
37+
native-blockchain-berlin: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Berlin}
3738
native-blockchain-metropolis: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Metropolis}
3839
native-blockchain-transition: pytest {posargs:tests/json-fixtures/test_blockchain.py -k BlockchainTests/TransitionTests}
3940
lint: flake8 {toxinidir}/eth {toxinidir}/tests {toxinidir}/scripts

0 commit comments

Comments
 (0)