mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Add prater testnet config (#2260)
## Issue Addressed Resolves #2258 ## Proposed Changes Add support for prater testnet.
This commit is contained in:
@@ -44,8 +44,10 @@ const SPADINA: HardcodedNet = define_net!(spadina, include_spadina_file);
|
||||
const PYRMONT: HardcodedNet = define_net!(pyrmont, include_pyrmont_file);
|
||||
const MAINNET: HardcodedNet = define_net!(mainnet, include_mainnet_file);
|
||||
const TOLEDO: HardcodedNet = define_net!(toledo, include_toledo_file);
|
||||
const PRATER: HardcodedNet = define_net!(prater, include_prater_file);
|
||||
|
||||
const HARDCODED_NETS: &[HardcodedNet] = &[ALTONA, MEDALLA, SPADINA, PYRMONT, MAINNET, TOLEDO];
|
||||
const HARDCODED_NETS: &[HardcodedNet] =
|
||||
&[ALTONA, MEDALLA, SPADINA, PYRMONT, MAINNET, TOLEDO, PRATER];
|
||||
pub const DEFAULT_HARDCODED_NETWORK: &str = "mainnet";
|
||||
|
||||
/// Specifies an Eth2 network.
|
||||
@@ -250,7 +252,11 @@ mod tests {
|
||||
let config = Eth2NetworkConfig::from_hardcoded_net(net)
|
||||
.unwrap_or_else(|_| panic!("{:?}", net.name));
|
||||
|
||||
if net.name == "mainnet" || net.name == "toledo" || net.name == "pyrmont" {
|
||||
if net.name == "mainnet"
|
||||
|| net.name == "toledo"
|
||||
|| net.name == "pyrmont"
|
||||
|| net.name == "prater"
|
||||
{
|
||||
// Ensure we can parse the YAML config to a chain spec.
|
||||
config
|
||||
.yaml_config
|
||||
|
||||
Reference in New Issue
Block a user