Skip to content

Commit

Permalink
Fix bootnode ports
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanjay176 committed Dec 17, 2019
1 parent 7706f8f commit fb3b5f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/beacon_chain_sim/src/local_network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ impl<E: EthSpec> LocalNetwork<E> {
/// Creates a new network with a single `BeaconNode`.
pub fn new(
context: RuntimeContext<E>,
beacon_config: ClientConfig,
mut beacon_config: ClientConfig,
) -> impl Future<Item = Self, Error = String> {
// Fix bootnode ports
beacon_config.network.discovery_port = 42424;
beacon_config.network.libp2p_port = 42424;
LocalBeaconNode::production(context.service_context("boot_node".into()), beacon_config).map(
|beacon_node| Self {
inner: Arc::new(Inner {
Expand Down

0 comments on commit fb3b5f5

Please sign in to comment.