-
Notifications
You must be signed in to change notification settings - Fork 195
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
chore(genesis deposit) : Change in local network setup with single node #2402
Conversation
Signed-off-by: nidhi-singh02 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2402 +/- ##
=======================================
Coverage 27.12% 27.12%
=======================================
Files 351 351
Lines 15523 15523
Branches 20 20
=======================================
Hits 4210 4210
Misses 11110 11110
Partials 203 203 |
Signed-off-by: nidhi-singh02 <[email protected]>
2623b68
to
1236eb0
Compare
@@ -74,7 +75,9 @@ if [[ $overwrite == "y" || $overwrite == "Y" ]]; then | |||
./build/bin/beacond genesis add-premined-deposit --home $HOMEDIR \ | |||
32000000000 0x20f33ce90a13a4b5e7697e3544c3083b8f8a51d4 | |||
./build/bin/beacond genesis collect-premined-deposits --home $HOMEDIR | |||
./build/bin/beacond genesis execution-payload "$ETH_GENESIS" --home $HOMEDIR | |||
./build/bin/beacond genesis set-deposit-storage "$ETH_GENESIS" --home $HOMEDIR |
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.
@nidhi-singh02 why do we execute both commands? I mean for both nethermind nodes and non-nethermind ones
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.
As we want to modify the deposit contract storage slot values for both the genesis files - for nethermind and for others. @calbera I hope my understanding is correct.
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.
Yeah the idea here is set both eth genesis files so that in case the user wants to start nethermind as the EL, its genesis file is also ready
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.
I am not sure this change is complete.
Shouldn't we make sure that also make start-<EL>
pick the right genesis file, as it was modified by the set-deposit-storage
command?
Yes, you are right, we are ensuring that as we changed the genesis path values as below -
|
2 things:
|
I validated by running genesis sanity checks that we have for all the EL clients - geth, reth, erigon, besu and nethermind. I spent some time tweaking few parameters for ethereumjs, it needs more time to dig into. Fixing something wrong that I see with ethereumjs data directory path in this PR. |
Signed-off-by: nidhi-singh02 <[email protected]>
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.
LGTM. tested that the deposit contract queries correctly on all ELs, even ethereumjs. Regarding ethereumjs not starting up correctly, that is also the case on main, so unrelated to this PR. will keep issue #2408 open
…de (#2402) Signed-off-by: nidhi-singh02 <[email protected]> Co-authored-by: Cal Bera <[email protected]>
…de (#2402) Signed-off-by: nidhi-singh02 <[email protected]> Co-authored-by: Cal Bera <[email protected]>
Using cli command for setting deposit contract storage slot values and using the correct genesis files(the one being modified by the cli command)