Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

[json-tests] stRevertTest blockchain test failures #11073

@dvdplm

Description

@dvdplm

After #11054 the following JSON tests fail in stRevertTest and are added to the list of skipped tests in ethcore/res/ethereum/tests-issues/currents.json.

"RevertPrecompiledTouch_d0g0v0_Byzantium",
"RevertPrecompiledTouch_d0g0v0_Constantinople",
"RevertPrecompiledTouch_d0g0v0_ConstantinopleFix",
"RevertPrecompiledTouch_d0g0v0_EIP158",
"RevertPrecompiledTouch_d3g0v0_ConstantinopleFix",
"RevertPrecompiledTouchCC_d0g0v0_Byzantium",
"RevertPrecompiledTouchCC_d0g0v0_Constantinople",
"RevertPrecompiledTouchCC_d0g0v0_EIP158",
"RevertPrecompiledTouchDC_d0g0v0_Byzantium",
"RevertPrecompiledTouchDC_d0g0v0_Constantinople",
"RevertPrecompiledTouchDC_d0g0v0_EIP158",
"RevertPrecompiledTouchExactOOG_d7g1v0_ConstantinopleFix",
"RevertPrecompiledTouchExactOOG_d31g1v0_ConstantinopleFix",
"RevertPrecompiledTouch_storage_d3g0v0_ConstantinopleFix",
"RevertPrecompiledTouch_storage_d0g0v0_ConstantinopleFix"

Fix the tests and "un-skip" them.

NOTE: of the above all are fixed except two by applying @debris's fix from #10923 to ethcore/machine/src/executive.rs:

+                                       let ripemd = Address::from_low_u64_be(3);
+                                       if un_substate.touched.contains(&ripemd) {
+                                               substate.touched.insert(ripemd);
+                                       }

Failing blockchain tests with the above:

"RevertPrecompiledTouchExactOOG_d7g1v0_ConstantinopleFix",
"RevertPrecompiledTouchExactOOG_d31g1v0_ConstantinopleFix",

Metadata

Metadata

Assignees

No one assigned

    Labels

    F4-tests 💻Tests need fixing, improving or augmenting.P2-asap 🌊No need to stop dead in your tracks, however issue should be addressed as soon as possible.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions