Skip to content

Commit 58bb132

Browse files
committed
tests: list "incorrect" test cases for ConstantinopleFix.
1 parent 6ccfb24 commit 58bb132

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

tests/json-fixtures-over-rpc/test_rpc_fixtures.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
# at the commit currently checked out in submodule `fixtures`.
109109
# Ideally, this list should be empty.
110110
# WHEN ADDING ENTRIES, ALWAYS PROVIDE AN EXPLANATION!
111+
# TODO: import from `py-evm` if possible
111112
INCORRECT_UPSTREAM_TESTS = {
112113
# The test considers a "synthetic" scenario (the state described there can't
113114
# be arrived at using regular consensus rules).
@@ -116,23 +117,27 @@
116117
# * https://github.com/ethereum/py-evm/pull/1224#issuecomment-418800369
117118
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_Byzantium'), # noqa: E501
118119
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_Constantinople'), # noqa: E501
120+
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_ConstantinopleFix'), # noqa: E501
119121

120122
# The CREATE2 variant seems to have been derived from the one above - it, too,
121123
# has a "synthetic" state, on which py-evm flips.
122124
# * https://github.com/ethereum/py-evm/pull/1181#issuecomment-446330609
123125
('GeneralStateTests/stCreate2/RevertInCreateInInitCreate2_d0g0v0.json', 'RevertInCreateInInitCreate2_d0g0v0_Constantinople'), # noqa: E501
126+
('GeneralStateTests/stCreate2/RevertInCreateInInitCreate2_d0g0v0.json', 'RevertInCreateInInitCreate2_d0g0v0_ConstantinopleFix'), # noqa: E501
124127

125128
# Four variants have been specifically added to test a collision type
126129
# like the above; therefore, they fail in the same manner.
127130
# * https://github.com/ethereum/py-evm/pull/1579#issuecomment-446591118
128-
# Interestingly, for py-evm - but not trinity! -
129-
# d2 passes in Constantinople after a refactor of storage handling.
130-
# The same test was already passing in ConstantinopleFix.
131-
# Since the situation is synthetic, not much research went into why, yet.
131+
# Interestingly, d2 passes in Constantinople after a py-evm refactor of storage handling,
132+
# the same test is already passing in ConstantinopleFix. Since the situation is synthetic,
133+
# not much research went into why, yet.
132134
('GeneralStateTests/stSStoreTest/InitCollision_d0g0v0.json', 'InitCollision_d0g0v0_Constantinople'), # noqa: E501
133135
('GeneralStateTests/stSStoreTest/InitCollision_d1g0v0.json', 'InitCollision_d1g0v0_Constantinople'), # noqa: E501
134136
('GeneralStateTests/stSStoreTest/InitCollision_d2g0v0.json', 'InitCollision_d2g0v0_Constantinople'), # noqa: E501
135137
('GeneralStateTests/stSStoreTest/InitCollision_d3g0v0.json', 'InitCollision_d3g0v0_Constantinople'), # noqa: E501
138+
('GeneralStateTests/stSStoreTest/InitCollision_d0g0v0.json', 'InitCollision_d0g0v0_ConstantinopleFix'), # noqa: E501
139+
('GeneralStateTests/stSStoreTest/InitCollision_d1g0v0.json', 'InitCollision_d1g0v0_ConstantinopleFix'), # noqa: E501
140+
('GeneralStateTests/stSStoreTest/InitCollision_d3g0v0.json', 'InitCollision_d3g0v0_ConstantinopleFix'), # noqa: E501
136141
}
137142

138143
RPC_STATE_NORMALIZERS = {

0 commit comments

Comments
 (0)