-
Notifications
You must be signed in to change notification settings - Fork 788
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
[Merged by Bors] - Update testnet configs, change on-disk format #1799
Conversation
Hey @pawanjay176, would you mind giving this a look over please? I know you're familiar with it :) |
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! just a minor nit and raising an unrelated issue.
@@ -1,4 +1,5 @@ | |||
testnet*/* | |||
schlesi-* | |||
witti-* | |||
altona* | |||
/altona* |
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.
Don't think we need these in gitignore. Just the built_in_testnet_configs/*/genesis.ssz
should suffice no?
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 wanted to try and avoid everyone suddenly having dirty working trees when we merged it and maybe accidentally adding things with git add -A
. Perhaps we can remove after a bit of time has passed.
@@ -108,6 +108,8 @@ pub struct ChainSpec { | |||
*/ | |||
pub eth1_follow_distance: u64, | |||
pub seconds_per_eth1_block: u64, | |||
pub deposit_chain_id: u64, |
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.
We are currently checking only network_id
in the eth1 crate to make sure beacon node is connected to the correct eth1 chain. I think we should check chain_id
as well to ensure that we aren't reading any bogus logs from an eth1 chain with a different chain id.
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.
Good call, I made an issue here: #1815
@@ -3,6 +3,18 @@ use std::env; | |||
use std::path::PathBuf; | |||
use types::ChainSpec; | |||
|
|||
// A macro is used to define this constant so it can be used with `include_bytes!`. |
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.
cool trick!
Thanks @pawanjay176! bors r+ |
Merge conflict. |
bors retry |
## Issue Addressed - Related to #1691 ## Proposed Changes - Add `DEPOSIT_CHAIN_ID` and `DEPOSIT_NETWORK_ID` to `config.yaml`. - Pass the `DEPOSIT_NETWORK_ID` to the `eth1::Service`. - Remove the unused `MAX_EPOCHS_PER_CROSSLINK` from the `altona` and `medalla` configs (see [spec commit](ethereum/consensus-specs@2befe90#diff-efb845ac2ebd4aafbc23df40f47ce25699255064e99d36d0406d0a14ca7953ec)). - Change from compressing the whole testnet directory, to only compressing the genesis state file. This is the only file we need to compress and *not* compressing the others makes them work nicely with git. - We can modify the boot nodes, configs, etc. without incurring an eternal binary-blob cost on our git history. - This change is backwards compatible (i.e., non-breaking). ## Additional Info NA
Pull request successfully merged into master. Build succeeded: |
## Issue Addressed We seem to have roll backed to old discv5 bootnodes with #1799 because of which fresh nodes with no cached peers cannot find any peers. ## Proposed Changes Updates `boot_enr.yaml` to discv5.1 bootnodes.
Issue Addressed
Proposed Changes
DEPOSIT_CHAIN_ID
andDEPOSIT_NETWORK_ID
toconfig.yaml
.DEPOSIT_NETWORK_ID
to theeth1::Service
.MAX_EPOCHS_PER_CROSSLINK
from thealtona
andmedalla
configs (see spec commit).Additional Info
NA