Skip to content

Commit 2b01068

Browse files
committed
tests: add more tests to INCORRECT_UPSTREAM_TESTS.
One is existing `RevertInCreateInInit`, but now for Constantinople, not just Byzantium. The other is `RevertInCreateInInitCreate2`, which contains the same "synthhetic" state which can't be arrived at by regular means in the EVM. It's likely a copy-paste atavism. The rest are variants testing specifically for what happens on collisions with a state like above. It has already been estabilished that there are two schools of thought: one with `geth` and `aleth` (and `testeth` that generates the tests); the other with `py-evm` and `parity`.
1 parent 067308b commit 2b01068

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/json-fixtures/test_blockchain.py

+12
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@
125125
# The result is in conflict with the yellow-paper:
126126
# * https://github.com/ethereum/py-evm/pull/1224#issuecomment-418800369
127127
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_Byzantium'), # noqa: E501
128+
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_Constantinople'), # noqa: E501
129+
# The CREATE2 variant seems to have been derived from the one above - it, too,
130+
# has a "synthetic" state, on which py-evm flips.
131+
# * https://github.com/ethereum/py-evm/pull/1181#issuecomment-446330609
132+
('GeneralStateTests/stCreate2/RevertInCreateInInitCreate2_d0g0v0.json', 'RevertInCreateInInitCreate2_d0g0v0_Constantinople'), # noqa: E501
133+
# All four variants have been specifically added to test a collision type
134+
# like the above; therefore, they fail in the same manner.
135+
# * https://github.com/ethereum/py-evm/pull/1579#issuecomment-446591118
136+
('GeneralStateTests/stSStoreTest/InitCollision_d0g0v0.json', 'InitCollision_d0g0v0_Constantinople'), # noqa: E501
137+
('GeneralStateTests/stSStoreTest/InitCollision_d1g0v0.json', 'InitCollision_d1g0v0_Constantinople'), # noqa: E501
138+
('GeneralStateTests/stSStoreTest/InitCollision_d2g0v0.json', 'InitCollision_d2g0v0_Constantinople'), # noqa: E501
139+
('GeneralStateTests/stSStoreTest/InitCollision_d3g0v0.json', 'InitCollision_d3g0v0_Constantinople'), # noqa: E501
128140
}
129141

130142

0 commit comments

Comments
 (0)