Skip to content

Commit 0b617e9

Browse files
committed
tests: list "incorrect" test cases for ConstantinopleFix.
1 parent e584e39 commit 0b617e9

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
@@ -105,6 +105,7 @@
105105
# at the commit currently checked out in submodule `fixtures`.
106106
# Ideally, this list should be empty.
107107
# WHEN ADDING ENTRIES, ALWAYS PROVIDE AN EXPLANATION!
108+
# TODO: import from `py-evm` if possible
108109
INCORRECT_UPSTREAM_TESTS = {
109110
# The test considers a "synthetic" scenario (the state described there can't
110111
# be arrived at using regular consensus rules).
@@ -113,23 +114,27 @@
113114
# * https://github.com/ethereum/py-evm/pull/1224#issuecomment-418800369
114115
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_Byzantium'), # noqa: E501
115116
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_Constantinople'), # noqa: E501
117+
('GeneralStateTests/stRevertTest/RevertInCreateInInit_d0g0v0.json', 'RevertInCreateInInit_d0g0v0_ConstantinopleFix'), # noqa: E501
116118

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

122125
# Four variants have been specifically added to test a collision type
123126
# like the above; therefore, they fail in the same manner.
124127
# * https://github.com/ethereum/py-evm/pull/1579#issuecomment-446591118
125-
# Interestingly, for py-evm - but not trinity! -
126-
# d2 passes in Constantinople after a refactor of storage handling.
127-
# The same test was already passing in ConstantinopleFix.
128-
# Since the situation is synthetic, not much research went into why, yet.
128+
# Interestingly, d2 passes in Constantinople after a py-evm refactor of storage handling,
129+
# the same test is already passing in ConstantinopleFix. Since the situation is synthetic,
130+
# not much research went into why, yet.
129131
('GeneralStateTests/stSStoreTest/InitCollision_d0g0v0.json', 'InitCollision_d0g0v0_Constantinople'), # noqa: E501
130132
('GeneralStateTests/stSStoreTest/InitCollision_d1g0v0.json', 'InitCollision_d1g0v0_Constantinople'), # noqa: E501
131133
('GeneralStateTests/stSStoreTest/InitCollision_d2g0v0.json', 'InitCollision_d2g0v0_Constantinople'), # noqa: E501
132134
('GeneralStateTests/stSStoreTest/InitCollision_d3g0v0.json', 'InitCollision_d3g0v0_Constantinople'), # noqa: E501
135+
('GeneralStateTests/stSStoreTest/InitCollision_d0g0v0.json', 'InitCollision_d0g0v0_ConstantinopleFix'), # noqa: E501
136+
('GeneralStateTests/stSStoreTest/InitCollision_d1g0v0.json', 'InitCollision_d1g0v0_ConstantinopleFix'), # noqa: E501
137+
('GeneralStateTests/stSStoreTest/InitCollision_d3g0v0.json', 'InitCollision_d3g0v0_ConstantinopleFix'), # noqa: E501
133138
}
134139

135140
RPC_STATE_NORMALIZERS = {

0 commit comments

Comments
 (0)