Skip to content

Commit bf80b88

Browse files
committed
Activate tests for Petersburg fork
1 parent 6701c64 commit bf80b88

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ jobs:
8484
- image: circleci/python:3.5
8585
environment:
8686
TOXENV: py35-native-blockchain-homestead
87+
py35-native-blockchain-petersburg:
88+
<<: *common
89+
docker:
90+
- image: circleci/python:3.5
91+
environment:
92+
TOXENV: py35-native-blockchain-petersburg
8793
py35-native-blockchain-tangerine_whistle:
8894
<<: *common
8995
docker:
@@ -157,6 +163,12 @@ jobs:
157163
- image: circleci/python:3.6
158164
environment:
159165
TOXENV: py36-native-blockchain-homestead
166+
py36-native-blockchain-petersburg:
167+
<<: *common
168+
docker:
169+
- image: circleci/python:3.6
170+
environment:
171+
TOXENV: py36-native-blockchain-petersburg
160172
py36-native-blockchain-tangerine_whistle:
161173
<<: *common
162174
docker:
@@ -219,6 +231,7 @@ workflows:
219231
- py36-native-blockchain-constantinople
220232
- py36-native-blockchain-frontier
221233
- py36-native-blockchain-homestead
234+
- py36-native-blockchain-petersburg
222235
- py36-native-blockchain-tangerine_whistle
223236
- py36-native-blockchain-spurious_dragon
224237
- py36-native-blockchain-transition
@@ -232,6 +245,7 @@ workflows:
232245
- py35-native-blockchain-constantinople
233246
- py35-native-blockchain-frontier
234247
- py35-native-blockchain-homestead
248+
- py35-native-blockchain-petersburg
235249
- py35-native-blockchain-tangerine_whistle
236250
- py35-native-blockchain-spurious_dragon
237251
- py35-native-blockchain-transition

eth/tools/fixtures/helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
BaseVM,
4444
)
4545
from eth.vm.forks import (
46+
PetersburgVM,
4647
ConstantinopleVM,
4748
ByzantiumVM,
4849
TangerineWhistleVM,
@@ -131,6 +132,10 @@ def chain_vm_configuration(fixture: Dict[str, Any]) -> Iterable[Tuple[int, Type[
131132
return (
132133
(0, ConstantinopleVM),
133134
)
135+
elif network == 'ConstantinopleFix':
136+
return (
137+
(0, PetersburgVM),
138+
)
134139
elif network == 'FrontierToHomesteadAt5':
135140
HomesteadVM = BaseHomesteadVM.configure(support_dao_fork=False)
136141
return (

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist=
33
py{35,36}-{core,database,transactions,vm}
44
py{36}-{benchmark}
5-
py{35,36}-native-blockchain-{frontier,homestead,tangerine_whistle,spurious_dragon,byzantium,constantinople,metropolis,transition}
5+
py{35,36}-native-blockchain-{frontier,homestead,tangerine_whistle,spurious_dragon,byzantium,constantinople,petersburg,metropolis,transition}
66
py37-{core}
77
py{35,36}-lint
88
py36-docs
@@ -28,6 +28,7 @@ commands=
2828
native-blockchain-spurious_dragon: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork EIP158}
2929
native-blockchain-byzantium: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Byzantium}
3030
native-blockchain-constantinople: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Constantinople}
31+
native-blockchain-petersburg: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork ConstantinopleFix}
3132
native-blockchain-metropolis: pytest {posargs:tests/json-fixtures/test_blockchain.py --fork Metropolis}
3233
native-blockchain-transition: pytest {posargs:tests/json-fixtures/test_blockchain.py -k BlockchainTests/TransitionTests}
3334

0 commit comments

Comments
 (0)