Skip to content

Commit

Permalink
fix benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Aug 10, 2023
1 parent 2def400 commit 7de61b5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion beacon_node/lighthouse_network/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub fn build_config(port: u16, mut boot_nodes: Vec<Enr>) -> NetworkConfig {
.unwrap();

config.set_ipv4_listening_address(std::net::Ipv4Addr::UNSPECIFIED, port, port, port + 1);
config.enr_disc4_port = Some(port);
config.enr_udp4_port = Some(port);
config.enr_address = (Some(std::net::Ipv4Addr::LOCALHOST), None);
config.boot_nodes_enr.append(&mut boot_nodes);
config.network_dir = path.into_path();
Expand Down
2 changes: 1 addition & 1 deletion beacon_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1433,4 +1433,4 @@ where
.into_iter()
.next()
.ok_or(format!("Must provide at least one value to {}", flag_name))
}
}
2 changes: 1 addition & 1 deletion lcli/src/generate_bootnode_enr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub fn run<T: EthSpec>(matches: &ArgMatches) -> Result<(), String> {

let mut config = NetworkConfig::default();
config.enr_address = (Some(ip), None);
config.enr_disc4_port = Some(udp_port);
config.enr_udp4_port = Some(udp_port);
config.enr_tcp6_port = Some(tcp_port);

let secp256k1_keypair = secp256k1::Keypair::generate();
Expand Down
2 changes: 1 addition & 1 deletion lighthouse/tests/beacon_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2357,4 +2357,4 @@ fn progressive_balances_fast() {
ProgressiveBalancesMode::Fast
)
});
}
}
4 changes: 2 additions & 2 deletions testing/simulator/src/local_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl<E: EthSpec> LocalNetwork<E> {
BOOTNODE_PORT,
QUIC_PORT,
);
beacon_config.network.enr_disc4_port = Some(BOOTNODE_PORT);
beacon_config.network.enr_udp4_port = Some(BOOTNODE_PORT);
beacon_config.network.enr_tcp4_port = Some(BOOTNODE_PORT);
beacon_config.network.discv5_config.table_filter = |_| true;

Expand Down Expand Up @@ -158,7 +158,7 @@ impl<E: EthSpec> LocalNetwork<E> {
BOOTNODE_PORT + count,
BOOTNODE_PORT + 1000 + count, // Offset the quick ports by 1000
);
beacon_config.network.enr_disc4_port = Some(BOOTNODE_PORT + count);
beacon_config.network.enr_udp4_port = Some(BOOTNODE_PORT + count);
beacon_config.network.enr_tcp4_port = Some(BOOTNODE_PORT + count);
beacon_config.network.discv5_config.table_filter = |_| true;
beacon_config.network.proposer_only = is_proposer;
Expand Down

0 comments on commit 7de61b5

Please sign in to comment.