Add more Altona boot ENR (#1310)

* Add other client boot enr

* Include lighthouse boot nodes
This commit is contained in:
Paul Hauner 2020-06-29 16:51:26 +10:00 committed by GitHub
parent 1e671a61d6
commit 163fda2c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ use std::fs::File;
use std::io::Write; use std::io::Write;
use std::path::PathBuf; use std::path::PathBuf;
const TESTNET_ID: &str = "altona-v2"; const TESTNET_ID: &str = "altona-v3";
fn main() { fn main() {
if !base_dir().exists() { if !base_dir().exists() {
@ -39,7 +39,7 @@ pub fn get_all_files() -> Result<(), String> {
pub fn get_file(filename: &str) -> Result<(), String> { pub fn get_file(filename: &str) -> Result<(), String> {
let url = format!( let url = format!(
"https://raw.githubusercontent.com/sigp/witti/2bab01c2c18aea9f571e79d646acfd34704cbfde/altona/lighthouse/{}", "https://raw.githubusercontent.com/sigp/witti/a94e00c1a03df851f960fcf44a79f2a6b1d29af1/altona/lighthouse/{}",
filename filename
); );

View File

@ -23,13 +23,13 @@ pub const YAML_CONFIG_FILE: &str = "config.yaml";
/// The name of the testnet to hardcode. /// The name of the testnet to hardcode.
/// ///
/// Should be set to `None` when no existing testnet is compatible with the codebase. /// Should be set to `None` when no existing testnet is compatible with the codebase.
pub const HARDCODED_TESTNET: Option<&str> = Some("altona-v2"); pub const HARDCODED_TESTNET: Option<&str> = Some("altona-v3");
pub const HARDCODED_YAML_CONFIG: &[u8] = include_bytes!("../altona-v2/config.yaml"); pub const HARDCODED_YAML_CONFIG: &[u8] = include_bytes!("../altona-v3/config.yaml");
pub const HARDCODED_DEPLOY_BLOCK: &[u8] = include_bytes!("../altona-v2/deploy_block.txt"); pub const HARDCODED_DEPLOY_BLOCK: &[u8] = include_bytes!("../altona-v3/deploy_block.txt");
pub const HARDCODED_DEPOSIT_CONTRACT: &[u8] = include_bytes!("../altona-v2/deposit_contract.txt"); pub const HARDCODED_DEPOSIT_CONTRACT: &[u8] = include_bytes!("../altona-v3/deposit_contract.txt");
pub const HARDCODED_GENESIS_STATE: &[u8] = include_bytes!("../altona-v2/genesis.ssz"); pub const HARDCODED_GENESIS_STATE: &[u8] = include_bytes!("../altona-v3/genesis.ssz");
pub const HARDCODED_BOOT_ENR: &[u8] = include_bytes!("../altona-v2/boot_enr.yaml"); pub const HARDCODED_BOOT_ENR: &[u8] = include_bytes!("../altona-v3/boot_enr.yaml");
/// Specifies an Eth2 testnet. /// Specifies an Eth2 testnet.
/// ///