-
Notifications
You must be signed in to change notification settings - Fork 21
fix: use separate chain id for mock l1 #596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| jq -s ' | ||
| .[0].alloc = .[1].alloc | ||
| | .[0].config.chainId = .[1].config.chainId | ||
| | .[0].config.chainId = 17000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrekucci Is this right? Or do we need to change this in some other files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK an eth chain's chainID is set in the genesis.json upon calling geth init
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically I just want to know if this is the best place to override this. So I am guessing this value right now is picked up from some config values we set. Maybe we need to update that value for this particular profile. So purely nomad implementation doubt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will pin the chain ID for other environments as well, we should create a new profile in the environments.yml file and use it for ci/integration tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the mock l1 correspond to an environment in the way you've designed it? Doesn't seem so. The current change would only affect the mock l1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following up here -
This will pin the chain ID for other environments as well
^ This is my intention in this PR. The mock-l1 should never have a chain id other than 17000, 1, etc. The current behavior where the mock l1 has a chain id of 17864, is incorrect. And likely a symptom of copying config from our mev-commit chain setup somewhere.
Adding an entry to the environments.yml doesn't seem appropriate here as the mock l1 is not it's own environment, It's a nomad job.
If more desirable, I can set this chain id as an env var in the profiles.yml under the mock_l1_job. Would this suffice @mrekucci?
Describe your changes
Currently the mock l1 used for integration tests has the same chain id as mev-commit testnet (17864). This PR changes the mock l1 to have a more realistic chain ID which is that of holesky (17000).
Checklist before requesting a review