Skip to content

Commit

Permalink
set target-peers in simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Jul 28, 2023
1 parent 071dd4c commit e4e2149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions testing/simulator/src/no_eth1_sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ pub fn run_no_eth1_sim(matches: &ArgMatches) -> Result<(), String> {
beacon_config.sync_eth1_chain = true;

beacon_config.network.enr_address = (Some(Ipv4Addr::LOCALHOST), None);
beacon_config.network.target_peers = node_count - 1;

let main_future = async {
let network = LocalNetwork::new(context.clone(), beacon_config.clone()).await?;
Expand Down
1 change: 1 addition & 0 deletions testing/simulator/src/sync_sim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ fn syncing_sim(
beacon_config.http_api.allow_sync_stalled = true;

beacon_config.network.enr_address = (Some(Ipv4Addr::LOCALHOST), None);
beacon_config.network.target_peers = 1;

// Generate the directories and keystores required for the validator clients.
let validator_indices = (0..num_validators).collect::<Vec<_>>();
Expand Down

0 comments on commit e4e2149

Please sign in to comment.