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

validate-chainspecs: check istanbul eips are in the foundation spec #11305

Merged
merged 2 commits into from
Dec 6, 2019

Conversation

ordian
Copy link
Collaborator

@ordian ordian commented Dec 5, 2019

No description provided.

@ordian ordian added M1-ci 🙉 Continuous integration. M2-config 📂 Chain specifications and node configurations. labels Dec 5, 2019
@ordian ordian added this to the 2.7 milestone Dec 5, 2019
@@ -15,6 +15,15 @@ done
for spec in ethcore/res/ethereum/*.json; do
if ! ./target/release/chainspec "$spec"; then ERR=1; fi
done

echo "________Mainnet contains Istanbul EIPs________"
for eip in $(grep --only-matching "eip.*Transition" ethcore/res/ethereum/istanbul_test.json); do
Copy link
Collaborator

@niklasad1 niklasad1 Dec 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to deal with re-enable transitions?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add them to the chain spec?
#11228 (comment)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I guess that is easiest solution even though they are redundant in this case.

@@ -15,6 +15,15 @@ done
for spec in ethcore/res/ethereum/*.json; do
if ! ./target/release/chainspec "$spec"; then ERR=1; fi
done

echo "________Mainnet contains Istanbul EIPs________"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't have to be addressed in this PR but would be good to run this on the other testing network (hard forks) such as Contantinople and so on.

In order to make sure that we are not breaking anything.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, but I think since we're running tests with istanbul_test spec, it should be caught there

@ordian ordian merged commit 36c917e into master Dec 6, 2019
@ordian ordian deleted the ao-check-mainnet-spec-against-istanbul-test branch December 6, 2019 12:12
dvdplm added a commit that referenced this pull request Dec 9, 2019
* master:
  Istanbul activation on xDai (#11299)
  Istanbul activation on POA Core (#11298)
  Adds support for ipc socket permissions (#11273)
  Add check for deserialising hex values over U256 limit (#11309)
  validate-chainspecs: check istanbul eips are in the foundation spec (#11305)
@TriplEight
Copy link
Collaborator

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
M1-ci 🙉 Continuous integration. M2-config 📂 Chain specifications and node configurations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants