mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-06 02:52:20 +00:00
Correct minimal chainspec modifications
This commit is contained in:
parent
dba7bfc4e1
commit
b3e0aad7bf
@ -202,15 +202,12 @@ impl ChainSpec {
|
|||||||
pub fn minimal() -> Self {
|
pub fn minimal() -> Self {
|
||||||
// Note: bootnodes to be updated when static nodes exist.
|
// Note: bootnodes to be updated when static nodes exist.
|
||||||
let boot_nodes = vec![];
|
let boot_nodes = vec![];
|
||||||
let genesis_slot = Slot::new(0);
|
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
target_committee_size: 4,
|
target_committee_size: 4,
|
||||||
shuffle_round_count: 10,
|
shuffle_round_count: 10,
|
||||||
min_genesis_active_validator_count: 64,
|
min_genesis_active_validator_count: 64,
|
||||||
max_epochs_per_crosslink: 4,
|
max_epochs_per_crosslink: 4,
|
||||||
min_attestation_inclusion_delay: 2,
|
|
||||||
genesis_slot,
|
|
||||||
network_id: 2, // lighthouse testnet network id
|
network_id: 2, // lighthouse testnet network id
|
||||||
boot_nodes,
|
boot_nodes,
|
||||||
..ChainSpec::mainnet()
|
..ChainSpec::mainnet()
|
||||||
@ -221,15 +218,12 @@ impl ChainSpec {
|
|||||||
///
|
///
|
||||||
/// This allows us to customize a chain spec for interop testing.
|
/// This allows us to customize a chain spec for interop testing.
|
||||||
pub fn interop() -> Self {
|
pub fn interop() -> Self {
|
||||||
let genesis_slot = Slot::new(0);
|
|
||||||
let boot_nodes = vec![];
|
let boot_nodes = vec![];
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
seconds_per_slot: 12,
|
seconds_per_slot: 12,
|
||||||
target_committee_size: 4,
|
target_committee_size: 4,
|
||||||
shuffle_round_count: 10,
|
shuffle_round_count: 10,
|
||||||
min_attestation_inclusion_delay: 2,
|
|
||||||
genesis_slot,
|
|
||||||
network_id: 13,
|
network_id: 13,
|
||||||
boot_nodes,
|
boot_nodes,
|
||||||
..ChainSpec::mainnet()
|
..ChainSpec::mainnet()
|
||||||
|
Loading…
Reference in New Issue
Block a user