Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 4c6b959

Browse files
authored
Enable mdns polkadot (#106)
Fixes #57
1 parent 1afdba7 commit 4c6b959

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

test/parachain/src/command.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -318,44 +318,6 @@ impl CliConfiguration for PolkadotCli {
318318
}
319319
}
320320

321-
// TODO: we disable mdns for the polkadot node because it prevents the process to exit
322-
// properly. See https://github.com/paritytech/cumulus/issues/57
323-
fn network_config(
324-
&self,
325-
chain_spec: &Box<dyn sc_service::ChainSpec>,
326-
is_dev: bool,
327-
net_config_dir: PathBuf,
328-
client_id: &str,
329-
node_name: &str,
330-
node_key: NodeKeyConfig,
331-
) -> Result<NetworkConfiguration> {
332-
let (mut network, allow_private_ipv4) = self
333-
.network_params()
334-
.map(|x| {
335-
(
336-
x.network_config(
337-
chain_spec,
338-
is_dev,
339-
Some(net_config_dir),
340-
client_id,
341-
node_name,
342-
node_key,
343-
),
344-
!x.no_private_ipv4,
345-
)
346-
})
347-
.expect("NetworkParams is always available on RunCmd; qed");
348-
349-
network.transport = TransportConfig::Normal {
350-
enable_mdns: false,
351-
allow_private_ipv4,
352-
wasm_external_transport: None,
353-
use_yamux_flow_control: false,
354-
};
355-
356-
Ok(network)
357-
}
358-
359321
fn init<C: SubstrateCli>(&self) -> Result<()> {
360322
unreachable!("PolkadotCli is never initialized; qed");
361323
}

0 commit comments

Comments
 (0)